diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-06-08 10:57:37 +0200 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-06-08 10:57:37 +0200 |
| commit | 5b6d54cae0e3355d71d86853a5a1350aa63527bb (patch) | |
| tree | 8f1b5c13e390ed0558acdd8f0ad5af0aa3bf5f6f /src/protocols/XDGShell.cpp | |
| parent | 6967a31450441fc5605c05db6f65505dace4b263 (diff) | |
xdg_shell: ignore outdated ack_configure events
Diffstat (limited to 'src/protocols/XDGShell.cpp')
| -rw-r--r-- | src/protocols/XDGShell.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/protocols/XDGShell.cpp b/src/protocols/XDGShell.cpp index 97de49f6..191a1124 100644 --- a/src/protocols/XDGShell.cpp +++ b/src/protocols/XDGShell.cpp @@ -403,8 +403,10 @@ CXDGSurfaceResource::CXDGSurfaceResource(SP<CXdgSurface> resource_, SP<CXDGWMBas }); resource->setAckConfigure([this](CXdgSurface* r, uint32_t serial) { + if (serial < lastConfigureSerial) + return; + lastConfigureSerial = serial; events.ack.emit(serial); - ; // TODO: verify it }); resource->setSetWindowGeometry([this](CXdgSurface* r, int32_t x, int32_t y, int32_t w, int32_t h) { |
