Commit 6ca5b8a7 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Make title buttons unfocusable

It is pretty unexpected to have the focus up in the decorations
after clicking on maximize, so avoid that but making the buttons
unfocusable.
parent 14db43c6
......@@ -4961,19 +4961,21 @@ create_decoration (GtkWidget *widget)
priv->title_label, TRUE, TRUE, 0);
priv->title_close_button = gtk_button_new_with_label ("×");
gtk_widget_set_can_focus (priv->title_close_button, FALSE);
gtk_box_pack_end (GTK_BOX (priv->title_box), priv->title_close_button,
FALSE, FALSE, 0);
g_signal_connect (priv->title_close_button, "clicked",
G_CALLBACK (gtk_window_title_close_clicked), window);
priv->title_max_button = gtk_button_new_with_label ("\342\226\253");
gtk_widget_set_can_focus (priv->title_max_button, FALSE);
gtk_box_pack_end (GTK_BOX (priv->title_box), priv->title_max_button,
FALSE, FALSE, 0);
g_signal_connect (priv->title_max_button, "clicked",
G_CALLBACK (gtk_window_title_max_clicked), window);
priv->title_min_button = gtk_button_new_with_label ("_");
gtk_widget_set_can_focus (priv->title_min_button, FALSE);
gtk_box_pack_end (GTK_BOX (priv->title_box), priv->title_min_button,
FALSE, FALSE, 0);
g_signal_connect (priv->title_min_button, "clicked",
......
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