wayland: Only update position if the with_move flag is set

This was causing the combobox popup to be moved to (0,0) when just the
size was asserted.
This commit is contained in:
Rob Bradford
2012-04-20 17:57:33 +01:00
parent 55261f4e3f
commit 568b310eb3

View File

@ -814,8 +814,11 @@ gdk_window_wayland_move_resize (GdkWindow *window,
gint width,
gint height)
{
if (with_move)
{
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