[Xfce4-commits] <xfce4-panel:master> Tasklist: Hide wireframe when window is destroyed (bug #7377).
Nick Schermer
noreply at xfce.org
Sun Mar 27 12:06:01 CEST 2011
Updating branch refs/heads/master
to 9081940f4049d9884a6af417f471240922a125cf (commit)
from c7707fa076c720d3157f0eb052fb6421f32d01f1 (commit)
commit 9081940f4049d9884a6af417f471240922a125cf
Author: Nick Schermer <nick at xfce.org>
Date: Sun Mar 27 12:05:02 2011 +0200
Tasklist: Hide wireframe when window is destroyed (bug #7377).
plugins/tasklist/tasklist-widget.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/plugins/tasklist/tasklist-widget.c b/plugins/tasklist/tasklist-widget.c
index 57945d5..286a0b6 100644
--- a/plugins/tasklist/tasklist-widget.c
+++ b/plugins/tasklist/tasklist-widget.c
@@ -1674,6 +1674,16 @@ xfce_tasklist_window_removed (WnckScreen *screen,
panel_return_if_fail (WNCK_IS_WINDOW (window));
n = g_signal_handlers_disconnect_matched (G_OBJECT (window),
G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, child);
+
+#ifdef GDK_WINDOWING_X11
+ /* hide the wireframe */
+ if (G_UNLIKELY (n > 5 && tasklist->show_wireframes))
+ {
+ xfce_tasklist_wireframe_hide (tasklist);
+ n--;
+ }
+#endif
+
panel_return_if_fail (n == 5);
/* destroy the button, this will free the child data in the
More information about the Xfce4-commits
mailing list