[rhythmbox] status-icon: Ensure the shell window is displayed on the current workspace.



commit 50c856473dda5cb222a91ce4202d12ec6c96b415
Author: Steve Frécinaux <code istique net>
Date:   Wed Sep 16 13:40:15 2009 +0200

    status-icon: Ensure the shell window is displayed on the current workspace.
    
    With the change of behaviour in metacity 2.27, the shell window flashes in the
    taskbar instead of appearing on the current desktop if it was minimized in
    another workspace. This patch fixes it by explicitely requesting that the
    window is moved to the current workspace before trying to display it.

 plugins/status-icon/rb-status-icon-plugin.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/plugins/status-icon/rb-status-icon-plugin.c b/plugins/status-icon/rb-status-icon-plugin.c
index 4dd0af2..4397f44 100644
--- a/plugins/status-icon/rb-status-icon-plugin.c
+++ b/plugins/status-icon/rb-status-icon-plugin.c
@@ -969,8 +969,13 @@ visibility_changing_cb (RBShell *shell,
 
 	if (visible) {
 		GtkWindow *window;
+		GdkWindow *gdkwindow;
 
 		g_object_get (shell, "window", &window, NULL);
+		gdkwindow = gtk_widget_get_window (GTK_WIDGET (window));
+		if (gdkwindow) {
+		    gdk_x11_window_move_to_current_desktop (gdkwindow);
+		}
 		gtk_window_set_skip_taskbar_hint (window, FALSE);
 		g_object_unref (window);
 	} else {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]