diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-04-24 14:27:31 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-04-24 14:27:31 +0000 |
| commit | 8740c30588bde9bda786677247e7e4271734b383 (patch) | |
| tree | 727f900622be91dcabfb6ea68530223ec2353b56 | |
| parent | e86900bd531d9c7093f8f5f6329e89c80bfe9767 (diff) | |
the check for if the window is being resized is only needed for syncing
| -rw-r--r-- | openbox/moveresize.c | 29 |
1 files changed, 14 insertions, 15 deletions
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); |
