From 190baa3a47929a7f0277ddbcd6df152da384144b Mon Sep 17 00:00:00 2001 From: sabetts Date: Thu, 14 Feb 2002 11:11:33 +0000 Subject: * src/events.c (configure_request): Ignore the configure notify event caused by the geometry change if the window is not mapped. --- src/events.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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 -- cgit v1.2.3