xwayland.c: Fix positioning with multiple queued configure events

Prevents a single action like ToggleDecorations + ToggleMaximize to
position the view somewhere with negative coordinates when unmaximizing.

It may still position the view on negative coordinates but later commit
events will fix the position. This issue only exists on xwayland because
there are no configure serials which we could use to ignore all
repositioning until we are at the latest desired state.
This commit is contained in:
Consolatis 2022-02-25 21:31:21 +01:00 committed by Johan Malm
parent 00ff00d9f9
commit 5f62f2ba99
2 changed files with 24 additions and 14 deletions

View file

@ -274,7 +274,7 @@ struct view {
*/
struct border padding;
struct {
struct view_pending_move_resize {
bool update_x, update_y;
double x, y;
uint32_t width, height;