summaryrefslogtreecommitdiff
path: root/src/caja-desktop-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/caja-desktop-window.c')
-rw-r--r--src/caja-desktop-window.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/caja-desktop-window.c b/src/caja-desktop-window.c
index aabc0468..4ef0b976 100644
--- a/src/caja-desktop-window.c
+++ b/src/caja-desktop-window.c
@@ -207,7 +207,11 @@ set_desktop_window_id (CajaDesktopWindow *window,
root_window = gdk_screen_get_root_window (
gtk_window_get_screen (GTK_WINDOW (window)));
+#if GTK_CHECK_VERSION (3, 0, 0)
+ window_xid = GDK_WINDOW_XID (gdkwindow);
+#else
window_xid = GDK_WINDOW_XWINDOW (gdkwindow);
+#endif
gdk_property_change (root_window,
gdk_atom_intern ("CAJA_DESKTOP_WINDOW_ID", FALSE),