summaryrefslogtreecommitdiff
path: root/mate-panel/panel-background-monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-panel/panel-background-monitor.c')
-rw-r--r--mate-panel/panel-background-monitor.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/mate-panel/panel-background-monitor.c b/mate-panel/panel-background-monitor.c
index a7e67e05..ce9737cf 100644
--- a/mate-panel/panel-background-monitor.c
+++ b/mate-panel/panel-background-monitor.c
@@ -166,11 +166,7 @@ panel_background_monitor_connect_to_screen (PanelBackgroundMonitor *monitor,
G_CALLBACK (panel_background_monitor_changed), monitor);
monitor->gdkwindow = gdk_screen_get_root_window (screen);
-#if GTK_CHECK_VERSION (3, 0, 0)
- monitor->xwindow = gdk_x11_window_get_xid (monitor->gdkwindow);
-#else
- monitor->xwindow = gdk_x11_drawable_get_xid (monitor->gdkwindow);
-#endif
+ monitor->xwindow = GDK_WINDOW_XID (monitor->gdkwindow);
gdk_window_add_filter (
monitor->gdkwindow, panel_background_monitor_xevent_filter, monitor);