diff options
-rw-r--r-- | mate-panel/panel-session.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/mate-panel/panel-session.c b/mate-panel/panel-session.c index 109500e1..e7a45995 100644 --- a/mate-panel/panel-session.c +++ b/mate-panel/panel-session.c @@ -24,9 +24,12 @@ #include <config.h> #include <stdlib.h> -#include <gdk/gdkx.h> #include <libegg/eggsmclient.h> +#ifdef HAVE_X11 +#include "xstuff.h" +#endif + #include "panel-shell.h" #include "panel-session.h" @@ -70,7 +73,11 @@ panel_session_init (void) g_signal_connect (client, "quit", G_CALLBACK (panel_session_handle_quit), NULL); - /* We don't want the WM to try and save/restore our - * window position */ - gdk_x11_set_sm_client_id (NULL); +#ifdef HAVE_X11 + if (is_using_x11 ()) { + /* We don't want the X WM to try and save/restore our + * window position */ + gdk_x11_set_sm_client_id (NULL); + } +#endif } |