window: Don't send startup notifications for offscreen / popup windows

The WM isn't aware of O-R (popup) or offscreen windows. If somebody
maps an offscreen or a popup GTK+ window before the main window, we'll
complete the sequence before a "real" window is mapped. Make sure to
ignore these for startup notifies.
This commit is contained in:
Jasper St. Pierre 2015-06-29 14:16:49 -07:00
parent 6ff5db374a
commit 04e727709d

View File

@ -6129,7 +6129,9 @@ gtk_window_map (GtkWidget *widget)
gdk_window_show (gdk_window);
if (!disable_startup_notification)
if (!disable_startup_notification &&
!GTK_IS_OFFSCREEN_WINDOW (window) &&
priv->type != GTK_WINDOW_POPUP)
{
/* Do we have a custom startup-notification id? */
if (priv->startup_id != NULL)