From be40cc6bee1f2a0cb3329077301460250cd303ae Mon Sep 17 00:00:00 2001 From: William Wold Date: Mon, 11 Feb 2019 16:17:08 -0500 Subject: Wayland support for panel-session.c --- mate-panel/panel-session.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'mate-panel/panel-session.c') 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 #include -#include #include +#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 } -- cgit v1.2.1