summaryrefslogtreecommitdiff
path: root/src/events.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2002-02-17 21:24:28 +0000
committersabetts <sabetts>2002-02-17 21:24:28 +0000
commit0027574655e306fcb2d9dd6ad578fdba9bf10826 (patch)
tree08b227e58b540b89ceb40cc310fbd87d31d832fb /src/events.c
parent6b681e4bcc5fc719ea27bd30b9547be43224e255 (diff)
downloadratpoison-0027574655e306fcb2d9dd6ad578fdba9bf10826.zip
* src/manage.c (update_normal_hints): fix debugging output to be
more readable. * src/events.c (configure_request): call XSync after granting configure request. (property_notify): maximize the window on receiving a normal hints property change.
Diffstat (limited to 'src/events.c')
-rw-r--r--src/events.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/events.c b/src/events.c
index c07fb0b..88033e1 100644
--- a/src/events.c
+++ b/src/events.c
@@ -299,7 +299,7 @@ configure_request (XConfigureRequestEvent *e)
XConfigureWindow (dpy, win->w,
e->value_mask & (CWX|CWY|CWBorderWidth|CWWidth|CWHeight),
&changes);
-
+ XSync(dpy, False);
if (win->state == NormalState)
maximize (win);
}
@@ -584,6 +584,8 @@ property_notify (XEvent *ev)
case XA_WM_NORMAL_HINTS:
PRINT_DEBUG ("updating window normal hints\n");
update_normal_hints (win);
+ if (win->state == NormalState)
+ maximize (win);
break;
case XA_WM_TRANSIENT_FOR: