[Xfce4-commits] <xfce4-panel:master> Set EWMH client type to WNCK_CLIENT_TYPE_PAGER (bug #10508).
Nick Schermer
noreply at xfce.org
Thu Dec 26 18:34:01 CET 2013
Updating branch refs/heads/master
to d296ca76507bc5ffdbb8e77745568cf5063e069d (commit)
from cdc3737f971d48d57dae15875f416ba772d0a8bf (commit)
commit d296ca76507bc5ffdbb8e77745568cf5063e069d
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 a19453d..f3f14a0 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\" \
@@ -60,6 +61,7 @@ xfce4_panel_CFLAGS = \
$(EXO_CFLAGS) \
$(LIBXFCE4UTIL_CFLAGS) \
$(LIBXFCE4UI_CFLAGS) \
+ $(LIBWNCK_CFLAGS) \
$(DBUS_CFLAGS) \
$(XFCONF_CFLAGS) \
$(LIBX11_CFLAGS) \
@@ -77,6 +79,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);
More information about the Xfce4-commits
mailing list