summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--src/events.c6
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c1ce77e..e42a489 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2002-02-14 Shawn Betts <sabetts@vcn.bc.ca>
+ * src/events.c (configure_request): Ignore the configure notify
+ event caused by the geometry change if the window is not mapped.
+
* src/manage.c (maximize_transient): correctly detect when the
window is bigger than its frame.
(maximize): ignore the structure events generated by the maximize
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