diff options
author | Tomas Janousek <tomi@nomi.cz> | 2007-06-28 18:35:35 (GMT) |
---|---|---|
committer | Tomas Janousek <tomi@nomi.cz> | 2008-01-27 14:01:14 (GMT) |
commit | c702d683e08792d764f2f4fb2ac37900f5cf1b78 (patch) | |
tree | 7a4a260c409349b8e6465d2a2d810eaae9216836 /src | |
parent | 041eacdfd58451d0d561f332e1cb3d17a0970cd1 (diff) | |
download | fluxbox-c702d683e08792d764f2f4fb2ac37900f5cf1b78.zip fluxbox-c702d683e08792d764f2f4fb2ac37900f5cf1b78.tar.bz2 |
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 <tomi@nomi.cz>
Diffstat (limited to 'src')
-rw-r--r-- | src/fluxbox.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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) { | |||
844 | 844 | ||
845 | #ifdef HAVE_RANDR | 845 | #ifdef HAVE_RANDR |
846 | if (e->type == m_randr_event_type) { | 846 | if (e->type == m_randr_event_type) { |
847 | XRRUpdateConfiguration(e); | ||
847 | // update root window size in screen | 848 | // update root window size in screen |
848 | BScreen *scr = searchScreen(e->xany.window); | 849 | BScreen *scr = searchScreen(e->xany.window); |
849 | if (scr != 0) | 850 | if (scr != 0) |