* src/xterm.c (handle_one_xevent): Call XRRUpdateConfiguration
on RRScreenChangeNotify and upon ConfigureNotify events for the
root window.
if (configureEvent.xconfigure.window == dpyinfo->root_window)
{
+#ifdef HAVE_XRANDR
+ /* This function is OK to call even if the X server doesn't
+ support RandR. */
+ XRRUpdateConfiguration (&configureEvent);
+#endif
+
dpyinfo->screen_width = configureEvent.xconfigure.width;
dpyinfo->screen_height = configureEvent.xconfigure.height;
}
union buffered_input_event *ev;
Time timestamp;
+ if (event->type == (dpyinfo->xrandr_event_base
+ + RRScreenChangeNotify))
+ XRRUpdateConfiguration (event);
+
if (event->type == (dpyinfo->xrandr_event_base
+ RRScreenChangeNotify))
timestamp = ((XRRScreenChangeNotifyEvent *) event)->timestamp;