X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fmoveresize.c;h=6db822c3f9d3b0d4a3e6bb7303fa9e1782b60369;hb=f6b049cd38715b279e03a6c68686454ac705420a;hp=c34cf81b29e239877cd64419a8e1a577957ea75c;hpb=e86900bd531d9c7093f8f5f6329e89c80bfe9767;p=chaz%2Fopenbox diff --git a/openbox/moveresize.c b/openbox/moveresize.c index c34cf81b..6db822c3 100644 --- a/openbox/moveresize.c +++ b/openbox/moveresize.c @@ -269,32 +269,31 @@ static void do_move(gboolean resist) static void do_resize() { - gint x, y, w, h, lw, lh; - - /* see if it is actually going to resize */ - x = moveresize_client->area.x; - y = moveresize_client->area.y; - w = cur_x; - h = cur_y; - client_try_configure(moveresize_client, lockcorner, &x, &y, &w, &h, - &lw, &lh, TRUE); - if (w == moveresize_client->area.width && - h == moveresize_client->area.height) - { - return; - } - #ifdef SYNC if (config_resize_redraw && extensions_sync && moveresize_client->sync_request && moveresize_client->sync_counter) { XEvent ce; XSyncValue val; + gint x, y, w, h, lw, lh; /* are we already waiting for the sync counter to catch up? */ if (waiting_for_sync) return; + /* see if it is actually going to resize */ + x = moveresize_client->area.x; + y = moveresize_client->area.y; + w = cur_x; + h = cur_y; + client_try_configure(moveresize_client, lockcorner, &x, &y, &w, &h, + &lw, &lh, TRUE); + if (w == moveresize_client->area.width && + h == moveresize_client->area.height) + { + return; + } + /* increment the value we're waiting for */ ++moveresize_client->sync_counter_value; XSyncIntToValue(&val, moveresize_client->sync_counter_value);