all repos — openbox @ e86900bd531d9c7093f8f5f6329e89c80bfe9767

openbox fork - make it a bit more like ryudo

fix resizing when drawContents is off, and I think an ifdef was a bit too high up
Mikael Magnusson mikachu@comhem.se
commit

e86900bd531d9c7093f8f5f6329e89c80bfe9767

parent

7854818a822893edeb9ed41397f1041cf466825a

2 files changed, 6 insertions(+), 6 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -1306,7 +1306,7 @@ notified whenever we want it to receive focus */

self->focus_notify = TRUE; #ifdef SYNC else if (proto[i] == prop_atoms.net_wm_sync_request) - /* if this protocol is requested, then the resizing the + /* if this protocol is requested, then resizing the window will be synchronized between the frame and the client */ self->sync_request = TRUE;
M openbox/moveresize.copenbox/moveresize.c

@@ -174,8 +174,8 @@ else

g_assert_not_reached(); #ifdef SYNC - if (!moving && extensions_shape && moveresize_client->sync_request && - moveresize_client->sync_counter) + if (config_resize_redraw && !moving && extensions_shape && + moveresize_client->sync_request && moveresize_client->sync_counter) { /* Initialize values for the resize syncing, and create an alarm for the client's xsync counter */

@@ -269,7 +269,6 @@ }

static void do_resize() { -#ifdef SYNC gint x, y, w, h, lw, lh; /* see if it is actually going to resize */

@@ -285,8 +284,9 @@ {

return; } - if (extensions_sync && moveresize_client->sync_request && - moveresize_client->sync_counter) +#ifdef SYNC + if (config_resize_redraw && extensions_sync && + moveresize_client->sync_request && moveresize_client->sync_counter) { XEvent ce; XSyncValue val;