diff options
author | William Wold <[email protected]> | 2019-02-11 16:17:08 -0500 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-03-10 15:11:45 +0100 |
commit | be40cc6bee1f2a0cb3329077301460250cd303ae (patch) | |
tree | 4ec73aed1d475d716b693d90dc0efc13816748b6 | |
parent | 8ae4ece9753c583c65503ac32ce4314cdc7d9029 (diff) | |
download | mate-panel-be40cc6bee1f2a0cb3329077301460250cd303ae.tar.bz2 mate-panel-be40cc6bee1f2a0cb3329077301460250cd303ae.tar.xz |
Wayland support for panel-session.c
-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 } |