the check for if the window is being resized is only needed for syncing

This commit is contained in:
Dana Jansens 2007-04-24 14:27:31 +00:00
parent e86900bd53
commit 8740c30588

View file

@ -269,8 +269,18 @@ static void do_move(gboolean resist)
static void do_resize() static void do_resize()
{ {
#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; 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 */ /* see if it is actually going to resize */
x = moveresize_client->area.x; x = moveresize_client->area.x;
y = moveresize_client->area.y; y = moveresize_client->area.y;
@ -284,17 +294,6 @@ static void do_resize()
return; return;
} }
#ifdef SYNC
if (config_resize_redraw && extensions_sync &&
moveresize_client->sync_request && moveresize_client->sync_counter)
{
XEvent ce;
XSyncValue val;
/* are we already waiting for the sync counter to catch up? */
if (waiting_for_sync)
return;
/* increment the value we're waiting for */ /* increment the value we're waiting for */
++moveresize_client->sync_counter_value; ++moveresize_client->sync_counter_value;
XSyncIntToValue(&val, moveresize_client->sync_counter_value); XSyncIntToValue(&val, moveresize_client->sync_counter_value);