Commit b190a979 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

screen: avoid deprecated gdk_display_get_screen

GTK+ does not support multiple screens!
parent 1312762e
......@@ -872,7 +872,10 @@ _wnck_screen_get_gdk_screen (WnckScreen *screen)
if (!gdkdisplay)
return NULL;
return gdk_display_get_screen (gdkdisplay, screen->priv->number);
if (screen->priv->number != 0)
return NULL;
return gdk_display_get_default_screen (gdkdisplay);
}
/**
......
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