summaryrefslogtreecommitdiff
path: root/mate-panel/panel-session.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-panel/panel-session.c')
-rw-r--r--mate-panel/panel-session.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mate-panel/panel-session.c b/mate-panel/panel-session.c
index dbfcebb5..5f43f3f4 100644
--- a/mate-panel/panel-session.c
+++ b/mate-panel/panel-session.c
@@ -26,7 +26,11 @@
#include <stdlib.h>
+#include <gtk/gtk.h>
#include <gdk/gdk.h>
+#if GTK_CHECK_VERSION (3, 0, 0)
+#include <gdk/gdkx.h>
+#endif
#include <libegg/eggsmclient.h>
@@ -76,5 +80,9 @@ panel_session_init (void)
/* We don't want the WM to try and save/restore our
* window position */
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gdk_x11_set_sm_client_id (NULL);
+#else
gdk_set_sm_client_id (NULL);
+#endif
}