* src/xterm.c (x_term_init): Make term always present on GTK.
;
#endif
-#ifdef HAVE_XRANDR
+#if defined HAVE_XRANDR || defined USE_GTK
Lisp_Object term;
-#ifndef USE_GTK
- dpyinfo->last_monitor_attributes_list = Qnil;
+ XSETTERMINAL (term, terminal);
#endif
+
+#ifdef HAVE_XRANDR
dpyinfo->xrandr_supported_p
= XRRQueryExtension (dpy, &dpyinfo->xrandr_event_base,
&dpyinfo->xrandr_error_base);
- XSETTERMINAL (term, terminal);
+#ifndef USE_GTK
+ dpyinfo->last_monitor_attributes_list = Qnil;
+#endif
if (dpyinfo->xrandr_supported_p)
{