* src/xterm.c (handle_one_xevent): Handle RRScreenChangeNotify
correctly.
union buffered_input_event *ev;
Time timestamp;
Lisp_Object current_monitors;
+ XRRScreenChangeNotifyEvent *notify;
if (event->type == (dpyinfo->xrandr_event_base
+ RRScreenChangeNotify))
if (event->type == (dpyinfo->xrandr_event_base
+ RRScreenChangeNotify))
- timestamp = ((XRRScreenChangeNotifyEvent *) event)->timestamp;
+ {
+ notify = ((XRRScreenChangeNotifyEvent *) event);
+ timestamp = notify->timestamp;
+
+ dpyinfo->screen_width = notify->width;
+ dpyinfo->screen_height = notify->height;
+ }
else
timestamp = 0;