g_return_val_if_fail (window != NULL, FALSE);
if (!GDK_WINDOW_IS_MAPPED (window))
return FALSE;
- screen = gdk_colormap_get_screen (gdk_drawable_get_colormap (window));
+ screen = gdk_window_get_screen (window);
if (x < 0 && y < 0)
{
gdk_drawable_get_size (window, &x, &y);
if (!GDK_WINDOW_IS_MAPPED (window))
return FALSE;
- screen = gdk_colormap_get_screen (gdk_drawable_get_colormap (window));
+ screen = gdk_window_get_screen (window);
if (x < 0 && y < 0)
{
gdk_drawable_get_size (window, &x, &y);