Include CSD titlebar in focus chain
At least for header bars, there's often application controls in this area, which should be included in the focus chain. We make it so that the initial focus avoids the titlebar, but tabbing around will eventually get there. https://bugzilla.gnome.org/show_bug.cgi?id=708067
This commit is contained in:
@ -7587,8 +7587,17 @@ gtk_window_focus (GtkWidget *widget,
|
||||
gtk_window_set_focus (GTK_WINDOW (container), NULL);
|
||||
}
|
||||
|
||||
/* Now try to focus the first widget in the window */
|
||||
child = gtk_bin_get_child (bin);
|
||||
/* Now try to focus the first widget in the window,
|
||||
* taking care to hook titlebar widgets into the
|
||||
* focus chain.
|
||||
*/
|
||||
if (priv->title_box != NULL &&
|
||||
old_focus_child != NULL &&
|
||||
priv->title_box != old_focus_child)
|
||||
child = priv->title_box;
|
||||
else
|
||||
child = gtk_bin_get_child (bin);
|
||||
|
||||
if (child)
|
||||
{
|
||||
if (gtk_widget_child_focus (child, direction))
|
||||
|
||||
Reference in New Issue
Block a user