X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ioncore%2Fkbresize.c;h=f91821ca5864eaebffd9c46004bd6f60cc2291f1;hb=be912256a10c9710090b9f67a7e0281847828640;hp=b4dbc7b058002d186c1d8f7d82e9dd76aa394948;hpb=de22e45179cb3bafa490294d31d47f361047a30a;p=ion3.git diff --git a/ioncore/kbresize.c b/ioncore/kbresize.c index b4dbc7b..f91821c 100644 --- a/ioncore/kbresize.c +++ b/ioncore/kbresize.c @@ -3,10 +3,7 @@ * * Copyright (c) Tuomo Valkonen 1999-2007. * - * Ion is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or - * (at your option) any later version. + * See the included file LICENSE for details. */ #include @@ -101,7 +98,8 @@ void moveresmode_accel(WMoveresMode *mode, int *wu, int *hu, int accel_mode) struct timeval tv; long adiff, udiff; - gettimeofday(&tv, NULL); + if(mainloop_gettime(&tv)!=0) + return; adiff=tvdiffmsec(&tv, &last_action_tv); udiff=tvdiffmsec(&tv, &last_update_tv);