fix resizing when drawContents is off, and I think an ifdef was a bit too high up
This commit is contained in:
parent
7854818a82
commit
e86900bd53
2 changed files with 6 additions and 6 deletions
|
@ -1306,7 +1306,7 @@ void client_update_protocols(ObClient *self)
|
||||||
self->focus_notify = TRUE;
|
self->focus_notify = TRUE;
|
||||||
#ifdef SYNC
|
#ifdef SYNC
|
||||||
else if (proto[i] == prop_atoms.net_wm_sync_request)
|
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
|
window will be synchronized between the frame and the
|
||||||
client */
|
client */
|
||||||
self->sync_request = TRUE;
|
self->sync_request = TRUE;
|
||||||
|
|
|
@ -174,8 +174,8 @@ void moveresize_start(ObClient *c, gint x, gint y, guint b, guint32 cnr)
|
||||||
g_assert_not_reached();
|
g_assert_not_reached();
|
||||||
|
|
||||||
#ifdef SYNC
|
#ifdef SYNC
|
||||||
if (!moving && extensions_shape && moveresize_client->sync_request &&
|
if (config_resize_redraw && !moving && extensions_shape &&
|
||||||
moveresize_client->sync_counter)
|
moveresize_client->sync_request && moveresize_client->sync_counter)
|
||||||
{
|
{
|
||||||
/* Initialize values for the resize syncing, and create an alarm for
|
/* Initialize values for the resize syncing, and create an alarm for
|
||||||
the client's xsync counter */
|
the client's xsync counter */
|
||||||
|
@ -269,7 +269,6 @@ static void do_move(gboolean resist)
|
||||||
|
|
||||||
static void do_resize()
|
static void do_resize()
|
||||||
{
|
{
|
||||||
#ifdef SYNC
|
|
||||||
gint x, y, w, h, lw, lh;
|
gint x, y, w, h, lw, lh;
|
||||||
|
|
||||||
/* see if it is actually going to resize */
|
/* see if it is actually going to resize */
|
||||||
|
@ -285,8 +284,9 @@ static void do_resize()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (extensions_sync && moveresize_client->sync_request &&
|
#ifdef SYNC
|
||||||
moveresize_client->sync_counter)
|
if (config_resize_redraw && extensions_sync &&
|
||||||
|
moveresize_client->sync_request && moveresize_client->sync_counter)
|
||||||
{
|
{
|
||||||
XEvent ce;
|
XEvent ce;
|
||||||
XSyncValue val;
|
XSyncValue val;
|
||||||
|
|
Loading…
Reference in a new issue