From 6ceac636cc2f96702707a560b73975391506c630 Mon Sep 17 00:00:00 2001 From: William Wold Date: Fri, 21 Jun 2019 02:59:13 +0000 Subject: Fix out-of-process applets on X11 by fixing mate-panel-applet.c --- libmate-panel-applet/mate-panel-applet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libmate-panel-applet/mate-panel-applet.c b/libmate-panel-applet/mate-panel-applet.c index 7d6ab4ac..642b3b92 100644 --- a/libmate-panel-applet/mate-panel-applet.c +++ b/libmate-panel-applet/mate-panel-applet.c @@ -1813,7 +1813,7 @@ mate_panel_applet_constructor (GType type, return object; #ifdef HAVE_X11 - if (!GDK_IS_X11_DISPLAY (gdk_display_get_default ())) + if (GDK_IS_X11_DISPLAY (gdk_display_get_default ())) { applet->priv->plug = gtk_plug_new (0); @@ -1832,7 +1832,7 @@ mate_panel_applet_constructor (GType type, applet); gtk_container_add (GTK_CONTAINER (applet->priv->plug), GTK_WIDGET (applet)); - } + } else #endif { // not using X11 g_warning ("Requested construction of an out-of-process applet, which is only possible on X11"); -- cgit v1.2.1