mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-09-23 15:49:11 +00:00
Revert "client: do not drop configure events based on current committed size"
This reverts commit 242ffd7a75.
Removing this conditon can cause a xdg_toplevel.configure ↔
wl_surface.commit loop that uses 100% CPU.
Fixes https://codeberg.org/dwl/dwl/issues/1245
Fixes https://codeberg.org/dwl/dwl/issues/1246
This commit is contained in:
@@ -376,6 +376,8 @@ client_set_size(Client *c, uint32_t width, uint32_t height)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
if ((int32_t)width != c->surface.xdg->toplevel->current.width
|
||||||
|
|| (int32_t)height != c->surface.xdg->toplevel->current.height)
|
||||||
wlr_xdg_toplevel_set_size(c->surface.xdg->toplevel, (int32_t)width, (int32_t)height);
|
wlr_xdg_toplevel_set_size(c->surface.xdg->toplevel, (int32_t)width, (int32_t)height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user