[Xfce4-commits] [xfce/xfce4-panel] 13/73: Set EWMH client type to WNCK_CLIENT_TYPE_PAGER (bug #10508).
noreply at xfce.org
noreply at xfce.org
Sun Feb 26 16:33:54 CET 2017
This is an automated email from the git hooks/post-receive script.
andrzejr pushed a commit to branch master
in repository xfce/xfce4-panel.
commit fa8b96f63e9f37f43d02af0ab627d66cf36c42e9
Author: Arnout Engelen <xfce at bzzt.net>
Date: Thu Dec 26 18:31:05 2013 +0100
Set EWMH client type to WNCK_CLIENT_TYPE_PAGER (bug #10508).
This is for window managers to tell them a pager or tasklist
requested the action.
---
panel/Makefile.am | 3 +++
panel/main.c | 4 ++++
2 files changed, 7 insertions(+)
diff --git a/panel/Makefile.am b/panel/Makefile.am
index 8c041b2..391c975 100644
--- a/panel/Makefile.am
+++ b/panel/Makefile.am
@@ -2,6 +2,7 @@
AM_CPPFLAGS = \
-I$(top_srcdir) \
-DG_LOG_DOMAIN=\"xfce4-panel\" \
+ -DWNCK_I_KNOW_THIS_IS_UNSTABLE \
-DDATADIR=\"$(datadir)/xfce4\" \
-DLIBDIR=\"$(libdir)/xfce4\" \
-DHELPERDIR=\"$(HELPER_PATH_PREFIX)/xfce4/panel\" \
@@ -59,6 +60,7 @@ xfce4_panel_CFLAGS = \
$(GMODULE_CFLAGS) \
$(LIBXFCE4UTIL_CFLAGS) \
$(LIBXFCE4UI_CFLAGS) \
+ $(LIBWNCK_CFLAGS) \
$(DBUS_CFLAGS) \
$(XFCONF_CFLAGS) \
$(LIBX11_CFLAGS) \
@@ -75,6 +77,7 @@ xfce4_panel_LDADD = \
$(GMODULE_LIBS) \
$(LIBXFCE4UTIL_LIBS) \
$(LIBXFCE4UI_LIBS) \
+ $(LIBWNCK_LIBS) \
$(XFCONF_LIBS) \
$(DBUS_LIBS) \
$(LIBX11_LIBS) \
diff --git a/panel/main.c b/panel/main.c
index 4ed389a..2ef0091 100644
--- a/panel/main.c
+++ b/panel/main.c
@@ -40,6 +40,7 @@
#include <dbus/dbus-glib.h>
#include <libxfce4util/libxfce4util.h>
#include <libxfce4ui/libxfce4ui.h>
+#include <libwnck/libwnck.h>
#include <common/panel-private.h>
#include <common/panel-debug.h>
@@ -338,6 +339,9 @@ main (gint argc, gchar **argv)
for (i = 0; i < G_N_ELEMENTS (signums); i++)
signal (signums[i], panel_signal_handler);
+ /* set EWMH source indication */
+ wnck_set_client_type (WNCK_CLIENT_TYPE_PAGER);
+
application = panel_application_get ();
panel_application_load (application, opt_disable_wm_check);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list