summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-22 18:07:07 +0000
committerDana Jansens <danakj@orodu.net>2007-05-22 18:07:07 +0000
commitd15d4d8b1a8c90500ad0fb0d2e797009d76af388 (patch)
tree6f432fbaa9f8a18cba87db39765c9763c1102ede /openbox
parent49c7c0305b6662b9d0da51c5eaac4318b8bc987c (diff)
don't show the resize popup unless you're actually resizing, for both sync mode and drawcontents off
Diffstat (limited to 'openbox')
-rw-r--r--openbox/moveresize.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/openbox/moveresize.c b/openbox/moveresize.c
index 837f3e92..fbc85f5b 100644
--- a/openbox/moveresize.c
+++ b/openbox/moveresize.c
@@ -325,31 +325,32 @@ static void do_move(gboolean keyboard)
static void do_resize()
{
+ gint x, y, w, h, lw, lh;
+
+ /* see if it is actually going to resize */
+ x = 0;
+ y = 0;
+ w = cur_x;
+ h = cur_y;
+ client_try_configure(moveresize_client, &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 = 0;
- y = 0;
- w = cur_x;
- h = cur_y;
- client_try_configure(moveresize_client, &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);