summaryrefslogtreecommitdiff
path: root/src/events.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2002-02-14 11:11:33 +0000
committersabetts <sabetts>2002-02-14 11:11:33 +0000
commit190baa3a47929a7f0277ddbcd6df152da384144b (patch)
tree54fdee4c4d1fc7fcf217dcda5bad9bc62f0511b0 /src/events.c
parent2d022d28ac06ecd9e1237f5ad7142891abb57dc9 (diff)
downloadratpoison-190baa3a47929a7f0277ddbcd6df152da384144b.zip
* src/events.c (configure_request): Ignore the configure notify
event caused by the geometry change if the window is not mapped.
Diffstat (limited to 'src/events.c')
-rw-r--r--src/events.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/events.c b/src/events.c
index ad3d21d..35d415f 100644
--- a/src/events.c
+++ b/src/events.c
@@ -338,9 +338,15 @@ configure_request (XConfigureRequestEvent *e)
if (e->value_mask & (CWX|CWY|CWBorderWidth|CWWidth|CWHeight))
{
+ /* Ignore the configure notify event caused by the geometry
+ change if the window is not mapped. */
+ if (win->state != NormalState)
+ XSelectInput (dpy, win->w, WIN_EVENTS&~(StructureNotifyMask));
XConfigureWindow (dpy, win->w,
e->value_mask & (CWX|CWY|CWBorderWidth|CWWidth|CWHeight),
&changes);
+ if (win->state != NormalState)
+ XSelectInput (dpy, win->w, WIN_EVENTS);
}
}
else