window-wayland: Don't insist if the window gives us a bad buffer
This is an easy way to get into an infinite loop where we're constantly re-sending stuff to the window. If it worked once, it probably won't work again.
This commit is contained in:
parent
e6558f838e
commit
6c5595fa9c
@ -203,7 +203,8 @@ meta_window_wayland_move_resize_internal (MetaWindow *window,
|
|||||||
* new position the client wants. */
|
* new position the client wants. */
|
||||||
can_move_now = TRUE;
|
can_move_now = TRUE;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
if (constrained_rect.width != window->rect.width ||
|
if (constrained_rect.width != window->rect.width ||
|
||||||
constrained_rect.height != window->rect.height)
|
constrained_rect.height != window->rect.height)
|
||||||
{
|
{
|
||||||
@ -224,6 +225,7 @@ meta_window_wayland_move_resize_internal (MetaWindow *window,
|
|||||||
* and then ack to simply move the window. */
|
* and then ack to simply move the window. */
|
||||||
can_move_now = TRUE;
|
can_move_now = TRUE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (can_move_now)
|
if (can_move_now)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user