[gnome-screensaver] Revert "Revert "window: only show panel on primary head""
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-screensaver] Revert "Revert "window: only show panel on primary head""
- Date: Tue, 17 Jul 2012 19:26:07 +0000 (UTC)
commit 1f5e35e3b883fb76bf5e922e46e40b6a67d3919d
Author: Ray Strode <rstrode redhat com>
Date: Tue Jul 17 15:12:57 2012 -0400
Revert "Revert "window: only show panel on primary head""
This reverts commit 0d534a922edd536223d6363a59d990ec288d6526.
Yo dawg, I heard you like reverts, so i'm reverting the revert,
so you can revert while you revert.
https://bugzilla.gnome.org/show_bug.cgi?id=679441
src/gs-window-x11.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-window-x11.c b/src/gs-window-x11.c
index 268194c..c278612 100644
--- a/src/gs-window-x11.c
+++ b/src/gs-window-x11.c
@@ -332,6 +332,9 @@ gs_window_move_resize_window (GSWindow *window,
gboolean resize)
{
GtkWidget *widget;
+ GdkScreen *screen;
+ int monitor;
+ int primary_monitor;
widget = GTK_WIDGET (window);
@@ -359,6 +362,12 @@ gs_window_move_resize_window (GSWindow *window,
window->priv->geometry.width,
window->priv->geometry.height);
}
+
+ screen = gtk_widget_get_screen (widget);
+ monitor = gdk_screen_get_monitor_at_window (screen,
+ gtk_widget_get_window (widget));
+ primary_monitor = gdk_screen_get_primary_monitor (screen);
+ gtk_widget_set_visible (window->priv->panel, monitor == primary_monitor);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]