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:
@ -808,14 +808,17 @@ gdk_window_wayland_restack_toplevel (GdkWindow *window,
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
gdk_window_wayland_move_resize (GdkWindow *window,
|
gdk_window_wayland_move_resize (GdkWindow *window,
|
||||||
gboolean with_move,
|
gboolean with_move,
|
||||||
gint x,
|
gint x,
|
||||||
gint y,
|
gint y,
|
||||||
gint width,
|
gint width,
|
||||||
gint height)
|
gint height)
|
||||||
{
|
{
|
||||||
window->x = x;
|
if (with_move)
|
||||||
window->y = y;
|
{
|
||||||
|
window->x = x;
|
||||||
|
window->y = y;
|
||||||
|
}
|
||||||
|
|
||||||
/* If this function is called with width and height = -1 then that means
|
/* If this function is called with width and height = -1 then that means
|
||||||
* just move the window - don't update its size
|
* just move the window - don't update its size
|
||||||
|
|||||||
Reference in New Issue
Block a user