Panel's keyboard focus

Karsten Luetkewitz phrep at plskthx.org
Wed Jun 11 19:16:39 CEST 2003


Hi!

Currently the panel can receive keyboard focus, which means that
XFce-panel will always be one of the windows that are included in the
list of cycleable (Alt-Tab) windows. That is IMHO a huge usability
regression, I can't think of a sane reason to let the panel receive
keyboard focus. The following patch makes the panel not
keyboard-focusable, launcher menus etc are not affected by this patch.

http://p.plskthx.org/files/themes/xfce4/panel-avoid-keyboard-focus.patch

-- 
Karsten Luetkewitz
-------------- next part --------------
--- xfce4-b/panel/panel.c	2003-05-17 10:45:00.000000000 +0200
+++ xfce4-a/panel/panel.c	2003-06-11 18:15:11.000000000 +0200
@@ -496,6 +496,9 @@ create_panel_framework (Panel * p)
     /* this is necessary after a SIGHUP */
     gtk_window_stick (GTK_WINDOW (p->toplevel));
 
+    /* avoid keyboard focus */
+    netk_gtk_window_avoid_input (GTK_WINDOW (p->toplevel));
+
     /* Connect signalers to window for autohide */
     g_signal_connect (GTK_WINDOW (p->toplevel), "enter-notify-event",
 		      G_CALLBACK (panel_enter), &panel);


More information about the Xfce4-dev mailing list