From c702d683e08792d764f2f4fb2ac37900f5cf1b78 Mon Sep 17 00:00:00 2001 From: Tomas Janousek Date: Thu, 28 Jun 2007 20:35:35 +0200 Subject: Call XRRUpdateConfiguration before querying Xinerama As the manpage says: Clients must call back into Xlib using XRRUpdateConfiguration when screen configuration change notify events are generated (or root window configuration changes occur, to update Xlib's view of the resolution, size, rotation, reflection or subpixel order. Signed-off-by: Tomas Janousek --- src/fluxbox.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fluxbox.cc b/src/fluxbox.cc index b20a4d9..9775b9d 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -844,6 +844,7 @@ void Fluxbox::handleEvent(XEvent * const e) { #ifdef HAVE_RANDR if (e->type == m_randr_event_type) { + XRRUpdateConfiguration(e); // update root window size in screen BScreen *scr = searchScreen(e->xany.window); if (scr != 0) -- cgit v0.11.2