wayland: Make toplevels' X/Y coordinates be 0

To all effects each window has its own "root" coordinates system, so set
toplevels at 0,0 in that coordinate system, so root coordinate calculations
are locally right.

https://bugzilla.gnome.org/show_bug.cgi?id=729215
This commit is contained in:
Carlos Garnacho 2014-08-21 17:39:09 +02:00
parent fde03c1f81
commit e206b72635

View File

@ -1204,10 +1204,14 @@ gdk_window_wayland_move_resize (GdkWindow *window,
gint height)
{
if (with_move)
{
/* Each toplevel has in its own "root" coordinate system */
if (GDK_WINDOW_TYPE (window) != GDK_WINDOW_TOPLEVEL)
{
window->x = x;
window->y = y;
}
}
/* If this function is called with width and height = -1 then that means
* just move the window - don't update its size