Skip to content
Snippets Groups Projects
Commit 559ff720 authored by Jérôme Guelfucci's avatar Jérôme Guelfucci
Browse files

Make sure the active window is not destroyed.

parent 9bff1090
No related branches found
No related tags found
No related merge requests found
......@@ -86,6 +86,15 @@ static GdkWindow
{
TRACE ("No active window, fallback to the root window");
window = gdk_get_default_root_window ();
*needs_unref = FALSE;
*border = FALSE;
}
else if (G_UNLIKELY (gdk_window_is_destroyed (window)))
{
TRACE ("The active window is destroyed, fallback to the root window.");
g_object_unref (window);
window = gdk_get_default_root_window ();
*needs_unref = FALSE;
*border = FALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment