mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 15:45:59 +01:00
xdg_shell: ignore outdated ack_configure events
This commit is contained in:
parent
6967a31450
commit
5b6d54cae0
1 changed files with 3 additions and 1 deletions
|
@ -403,8 +403,10 @@ CXDGSurfaceResource::CXDGSurfaceResource(SP<CXdgSurface> resource_, SP<CXDGWMBas
|
||||||
});
|
});
|
||||||
|
|
||||||
resource->setAckConfigure([this](CXdgSurface* r, uint32_t serial) {
|
resource->setAckConfigure([this](CXdgSurface* r, uint32_t serial) {
|
||||||
|
if (serial < lastConfigureSerial)
|
||||||
|
return;
|
||||||
|
lastConfigureSerial = serial;
|
||||||
events.ack.emit(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) {
|
resource->setSetWindowGeometry([this](CXdgSurface* r, int32_t x, int32_t y, int32_t w, int32_t h) {
|
||||||
|
|
Loading…
Reference in a new issue