Made moo_remove_startup_notify() work on gnome; still doesn't work in KDE, for some unrelated reasons
This commit is contained in:
parent
8035cb2a0a
commit
79c1f4f2e0
@ -1479,7 +1479,10 @@ moo_remove_startup_notify (GtkWidget *widget)
|
|||||||
id = g_getenv ("DESKTOP_STARTUP_ID");
|
id = g_getenv ("DESKTOP_STARTUP_ID");
|
||||||
|
|
||||||
if (!id)
|
if (!id)
|
||||||
|
{
|
||||||
|
// g_message ("no DESKTOP_STARTUP_ID variable");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
message = g_strdup_printf ("remove: ID=%s", id);
|
message = g_strdup_printf ("remove: ID=%s", id);
|
||||||
message_len = strlen (message) + 1;
|
message_len = strlen (message) + 1;
|
||||||
@ -1495,7 +1498,7 @@ moo_remove_startup_notify (GtkWidget *widget)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
GdkWindowAttr attributes;
|
static GdkWindowAttr attributes;
|
||||||
GdkScreen *screen;
|
GdkScreen *screen;
|
||||||
|
|
||||||
screen = gdk_screen_get_default ();
|
screen = gdk_screen_get_default ();
|
||||||
@ -1503,6 +1506,7 @@ moo_remove_startup_notify (GtkWidget *widget)
|
|||||||
root = gdk_screen_get_root_window (screen);
|
root = gdk_screen_get_root_window (screen);
|
||||||
g_return_if_fail (root != NULL);
|
g_return_if_fail (root != NULL);
|
||||||
|
|
||||||
|
attributes.window_type = GDK_WINDOW_TEMP;
|
||||||
freeme = window = gdk_window_new (root, &attributes, 0);
|
freeme = window = gdk_window_new (root, &attributes, 0);
|
||||||
g_return_if_fail (window != NULL);
|
g_return_if_fail (window != NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user