[Xfce4-commits] <xfce4-wmdock-plugin:master> Use the group_window is the hint WindowGroup is set.
Andre Ellguth
noreply at xfce.org
Thu Dec 31 12:28:01 CET 2009
Updating branch refs/heads/master
to e84447038f0844a3764fcd8e2a516fc0e6b5c5d2 (commit)
from 65616e4360d0f963ea00f5a167f7d1e20a81cd70 (commit)
commit e84447038f0844a3764fcd8e2a516fc0e6b5c5d2
Author: Andre Ellguth <andre at ellguth.com>
Date: Thu Dec 31 12:26:39 2009 +0100
Use the group_window is the hint WindowGroup is set.
panel-plugin/wmdock.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/panel-plugin/wmdock.c b/panel-plugin/wmdock.c
index 4f3095e..f6877c6 100644
--- a/panel-plugin/wmdock.c
+++ b/panel-plugin/wmdock.c
@@ -96,9 +96,6 @@ static void wmdock_redraw_dockapp(DockappNode *);
static void wmdock_destroy_dockapp(DockappNode *);
-/* #define DEBUG */
-#define DEBUG
-
#ifdef DEBUG
/* fp needed for debug */
FILE *fp = (FILE *) NULL;
@@ -745,6 +742,13 @@ static void wmdock_window_open(WnckScreen *s, WnckWindow *w)
XUnmapWindow(GDK_DISPLAY_XDISPLAY(gdk_display_get_default()),
wnck_window_get_xid(w));
dapp->i =h->icon_window;
+ if(h->flags & WindowGroupHint)
+ dapp->i = h->window_group;
+#ifdef DEBUG
+ fprintf(fp, "wmdock: dapp %s has the initial_state WithdrawnState.\n",
+ wnck_window_get_name(w));
+ fflush(fp);
+#endif
} else {
dapp->i = wnck_window_get_xid(w);
}
More information about the Xfce4-commits
mailing list