don't show the resize popup unless you're actually resizing, for both sync mode and drawcontents off
This commit is contained in:
parent
49c7c0305b
commit
d15d4d8b1a
1 changed files with 15 additions and 14 deletions
|
@ -325,18 +325,8 @@ static void do_move(gboolean keyboard)
|
|||
|
||||
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;
|
||||
|
||||
/* 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 = 0;
|
||||
y = 0;
|
||||
|
@ -350,6 +340,17 @@ static void do_resize()
|
|||
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 */
|
||||
++moveresize_client->sync_counter_value;
|
||||
XSyncIntToValue(&val, moveresize_client->sync_counter_value);
|
||||
|
|
Loading…
Reference in a new issue