xdg_shell: ignore outdated ack_configure events

This commit is contained in:
Vaxry 2024-06-08 10:57:37 +02:00
parent 6967a31450
commit 5b6d54cae0

View file

@ -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) {