[gnome-settings-daemon/randr-osd: 58/60] Let the RANDR OSD focus itself when it is mapped
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/randr-osd: 58/60] Let the RANDR OSD focus itself when it is mapped
- Date: Wed, 3 Mar 2010 23:49:06 +0000 (UTC)
commit 7e745cf7d5ce95413b085572d3ad591bd11aab38
Author: Federico Mena Quintero <federico novell com>
Date: Wed Mar 3 12:50:06 2010 -0600
Let the RANDR OSD focus itself when it is mapped
It is meant to be an interactive window, so we need the input focus.
Signed-off-by: Federico Mena Quintero <federico novell com>
plugins/xrandr/gsd-xrandr-manager.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/xrandr/gsd-xrandr-manager.c b/plugins/xrandr/gsd-xrandr-manager.c
index 022afb5..f744253 100644
--- a/plugins/xrandr/gsd-xrandr-manager.c
+++ b/plugins/xrandr/gsd-xrandr-manager.c
@@ -1205,8 +1205,10 @@ create_osd_window (GsdXrandrManager *manager)
destroy_osd_window (manager);
priv->osd_window = gsd_osd_window_new ();
+
gsd_osd_window_set_auto_hide (GSD_OSD_WINDOW (priv->osd_window), FALSE);
gtk_window_set_type_hint (GTK_WINDOW (priv->osd_window), GDK_WINDOW_TYPE_HINT_NORMAL);
+ gtk_window_set_focus_on_map (GTK_WINDOW (priv->osd_window), TRUE);
box = gtk_hbox_new (TRUE, 12);
gtk_container_add (GTK_CONTAINER (priv->osd_window), box);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]