aboutsummaryrefslogtreecommitdiffstats
path: root/src/xfns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xfns.c')
-rw-r--r--src/xfns.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c
index f238a3daa15..13f66f07183 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -5030,7 +5030,7 @@ Internal use only, use `display-monitor-attributes-list' instead. */)
5030 mi->mm_height = height_mm; 5030 mi->mm_height = height_mm;
5031 5031
5032#if GTK_CHECK_VERSION (3, 22, 0) 5032#if GTK_CHECK_VERSION (3, 22, 0)
5033 mi->name = g_strdup (gdk_monitor_get_model (monitor)); 5033 mi->name = xstrdup (gdk_monitor_get_model (monitor));
5034#elif GTK_CHECK_VERSION (2, 14, 0) 5034#elif GTK_CHECK_VERSION (2, 14, 0)
5035 mi->name = gdk_screen_get_monitor_plug_name (gscreen, i); 5035 mi->name = gdk_screen_get_monitor_plug_name (gscreen, i);
5036#endif 5036#endif
@@ -5041,6 +5041,11 @@ Internal use only, use `display-monitor-attributes-list' instead. */)
5041 primary_monitor, 5041 primary_monitor,
5042 monitor_frames, 5042 monitor_frames,
5043 source); 5043 source);
5044#if GTK_CHECK_VERSION (2, 14, 0)
5045 free_monitors (monitors, n_monitors);
5046#else
5047 xfree (monitors);
5048#endif
5044 unblock_input (); 5049 unblock_input ();
5045#else /* not USE_GTK */ 5050#else /* not USE_GTK */
5046 5051