[Xfce4-commits] <xfce4-panel:master> Debugging info if window is hidden/shown on output change.
Nick Schermer
noreply at xfce.org
Fri Nov 26 23:52:01 CET 2010
Updating branch refs/heads/master
to 5bd37a080c282d87626e206b5214242a1a97dd6e (commit)
from b910f14e0d3e4c3f158dc3fb0b663bf081d00ed8 (commit)
commit 5bd37a080c282d87626e206b5214242a1a97dd6e
Author: Nick Schermer <nick at xfce.org>
Date: Fri Nov 26 23:04:59 2010 +0100
Debugging info if window is hidden/shown on output change.
panel/panel-window.c | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/panel/panel-window.c b/panel/panel-window.c
index b853cbf..7a9788e 100644
--- a/panel/panel-window.c
+++ b/panel/panel-window.c
@@ -1772,6 +1772,9 @@ panel_window_screen_layout_changed (GdkScreen *screen,
display = gdk_screen_get_display (screen);
if (gdk_display_get_n_screens (display) - 1 > screen_num)
{
+ panel_debug (PANEL_DEBUG_DOMAIN_POSITIONING,
+ "screen-%d not found, hiding panel", screen_num);
+
/* out of range, hide the window */
if (GTK_WIDGET_VISIBLE (window))
gtk_widget_hide (GTK_WIDGET (window));
@@ -1779,6 +1782,11 @@ panel_window_screen_layout_changed (GdkScreen *screen,
}
else
{
+ panel_debug (PANEL_DEBUG_DOMAIN_POSITIONING,
+ "moving panel from screen %d to %d",
+ gdk_screen_get_number (screen),
+ screen_num);
+
/* move window to the correct screen */
screen = gdk_display_get_screen (display, screen_num);
gtk_window_set_screen (GTK_WINDOW (window), screen);
@@ -1849,11 +1857,12 @@ panel_window_screen_layout_changed (GdkScreen *screen,
}
}
- panel_debug (PANEL_DEBUG_DOMAIN_POSITIONING,
- "monitor-num=%d", monitor_num);
-
if (G_UNLIKELY (monitor_num == -1))
{
+ panel_debug (PANEL_DEBUG_DOMAIN_POSITIONING,
+ "output/monitor %s not found, hiding window",
+ window->output_name);
+
/* hide the panel if the monitor was not found */
if (GTK_WIDGET_VISIBLE (window))
gtk_widget_hide (GTK_WIDGET (window));
More information about the Xfce4-commits
mailing list