Commit e56a9e6c authored by Matthias Clasen's avatar Matthias Clasen Committed by Daniel Boles
Browse files

window: Fix focus wraparound

If tab focus falls off the end, and we have an empty headerbar,
we end up with window->focus == NULL. Don't let that happen

Close #686 (comment 529577)
parent b6c9d23b
Pipeline #87740 failed with stage
in 11 minutes and 2 seconds
......@@ -8625,7 +8625,7 @@ gtk_window_focus (GtkWidget *widget,
if (old_focus_child)
{
if (gtk_widget_child_focus (old_focus_child, direction))
return TRUE;
return TRUE;
}
if (priv->focus_widget)
......@@ -8668,7 +8668,9 @@ gtk_window_focus (GtkWidget *widget,
priv->title_box != child &&
gtk_widget_child_focus (priv->title_box, direction))
return TRUE;
else if (priv->title_box == child &&
gtk_widget_child_focus (gtk_bin_get_child (bin), direction))
return TRUE;
}
return FALSE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment