Implement get_root_origin generically for all backends

It seems that some backends implemented get_root_origin wrong
and returned the client window coordinates, not the frame window
coordinates. Since it's possible to implement generically for all
windows, let's do that instead of having a separate impl vfunc.
This commit is contained in:
Jasper St. Pierre
2014-03-17 15:39:39 -04:00
parent c663cabe7b
commit efdd68b3b0
8 changed files with 9 additions and 96 deletions

View File

@ -1663,18 +1663,6 @@ gdk_wayland_window_set_transient_for (GdkWindow *window,
gdk_wayland_window_sync_transient_for (window);
}
static void
gdk_wayland_window_get_root_origin (GdkWindow *window,
gint *x,
gint *y)
{
if (x)
*x = 0;
if (y)
*y = 0;
}
static void
gdk_wayland_window_get_frame_extents (GdkWindow *window,
GdkRectangle *rect)
@ -2226,7 +2214,6 @@ _gdk_window_impl_wayland_class_init (GdkWindowImplWaylandClass *klass)
impl_class->set_role = gdk_wayland_window_set_role;
impl_class->set_startup_id = gdk_wayland_window_set_startup_id;
impl_class->set_transient_for = gdk_wayland_window_set_transient_for;
impl_class->get_root_origin = gdk_wayland_window_get_root_origin;
impl_class->get_frame_extents = gdk_wayland_window_get_frame_extents;
impl_class->set_override_redirect = gdk_wayland_window_set_override_redirect;
impl_class->set_accept_focus = gdk_wayland_window_set_accept_focus;