summaryrefslogtreecommitdiffstats
path: root/logout-focus.patch
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@fedoraproject.org>2008-02-03 06:53:56 +0000
committerMatthias Clasen <mclasen@fedoraproject.org>2008-02-03 06:53:56 +0000
commit9b3366093b970f3561dbf147c8c090ce51b13bb6 (patch)
tree997cbafdd2c9f0e1d24eafeb5ce26104ca97ed38 /logout-focus.patch
parent4a0e59f596a3399af766324a203f957a2bcd78a3 (diff)
downloadgnome-panel-9b3366093b970f3561dbf147c8c090ce51b13bb6.tar.gz
gnome-panel-9b3366093b970f3561dbf147c8c090ce51b13bb6.tar.xz
gnome-panel-9b3366093b970f3561dbf147c8c090ce51b13bb6.zip
Ensure the logout dialog gets focus
Diffstat (limited to 'logout-focus.patch')
-rw-r--r--logout-focus.patch9
1 files changed, 9 insertions, 0 deletions
diff --git a/logout-focus.patch b/logout-focus.patch
new file mode 100644
index 0000000..feb8eb6
--- /dev/null
+++ b/logout-focus.patch
@@ -0,0 +1,9 @@
+diff -up gnome-panel-2.21.90/gnome-panel/panel-logout.c.logout-focus gnome-panel-2.21.90/gnome-panel/panel-logout.c
+--- gnome-panel-2.21.90/gnome-panel/panel-logout.c.logout-focus 2008-02-03 01:48:13.000000000 -0500
++++ gnome-panel-2.21.90/gnome-panel/panel-logout.c 2008-02-03 01:48:19.000000000 -0500
+@@ -449,4 +449,5 @@ panel_logout_new (PanelLogoutDialogType
+
+ gtk_window_set_screen (GTK_WINDOW (logout_dialog), screen);
+ gtk_widget_show (GTK_WIDGET (logout_dialog));
++ gdk_window_focus (GTK_WIDGET (current_dialog)->window, activate_time);
+ }