wayland: Stop using gdk_display_get_root_window

We can just use the display field directly.
This commit is contained in:
Matthias Clasen 2017-11-05 19:44:39 -05:00
parent f3150c3a43
commit 2eb78a2374
3 changed files with 3 additions and 3 deletions

View File

@ -586,7 +586,7 @@ gdk_wayland_device_query_state (GdkDevice *device,
GdkWaylandPointerData *pointer;
if (window == NULL)
window = gdk_display_get_root_window (gdk_device_get_display (device));
window = GDK_WAYLAND_DISPLAY (gdk_device_get_display (device))->root_window;
pointer = GDK_WAYLAND_DEVICE (device)->pointer;

View File

@ -2100,7 +2100,7 @@ gdk_wayland_display_remove_output (GdkWaylandDisplay *display_wayland,
g_object_ref (monitor);
g_ptr_array_remove (display_wayland->monitors, monitor);
gdk_display_monitor_removed (GDK_DISPLAY (display_wayland), GDK_MONITOR (monitor));
window_update_scale (gdk_display_get_root_window (GDK_MONITOR (monitor)->display));
window_update_scale (display_wayland->root_window);
g_object_unref (monitor);
}
}

View File

@ -3781,7 +3781,7 @@ gdk_wayland_window_new_subsurface (GdkDisplay *display,
attr.height = position->height;
attr.window_type = GDK_WINDOW_SUBSURFACE;
return gdk_window_new (display, gdk_display_get_root_window (display), &attr);
return gdk_window_new (display, NULL, &attr);
}
/**