From 203fc002b6948c3942f0461a0346dd07b633222d Mon Sep 17 00:00:00 2001 From: thb Date: Mon, 23 Jun 2008 13:25:12 -0400 Subject: Bug #16430: Ignore ConfigureNotify on non-root windows in UpdateConfiguration --- src/Xrandr.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Xrandr.c b/src/Xrandr.c index 8896675..c7bbc8e 100644 --- a/src/Xrandr.c +++ b/src/Xrandr.c @@ -395,9 +395,11 @@ int XRRUpdateConfiguration(XEvent *event) if (event->type == ConfigureNotify) { rcevent = (XConfigureEvent *) event; snum = XRRRootToScreen(dpy, rcevent->window); - dpy->screens[snum].width = rcevent->width; - dpy->screens[snum].height = rcevent->height; - return 1; + if (snum != -1) { + dpy->screens[snum].width = rcevent->width; + dpy->screens[snum].height = rcevent->height; + return 1; + } } info = XRRFindDisplay(dpy); -- cgit v1.2.1