window: Remove needless call to ensure_state_flag_backdrop() on map

This call was forcing needless work since gtk_window_map() already
does a gdk_window_show() which initially sets GDK_WINDOW_STATE_FOCUSED
that we then handle regularly on the widget's window state event
handler.

https://bugzilla.gnome.org/show_bug.cgi?id=673237
This commit is contained in:
Rui Matos 2012-03-31 16:16:24 +02:00 committed by Ryan Lortie
parent 7c038b1b33
commit 4d7c7ec32f

View File

@ -5017,8 +5017,6 @@ gtk_window_map (GtkWidget *widget)
gtk_window_set_focus_visible (window, gtk_window_get_focus_visible (priv->transient_parent));
else
gtk_window_set_focus_visible (window, visible_focus == GTK_POLICY_ALWAYS);
ensure_state_flag_backdrop (widget);
}
static gboolean