mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-05 03:46:53 +00:00
a5311fc3ddf4aa3449f02a2fac8cf26be103de73
size-changed
Resizing happens asynchronously on wayland, and running a second resize will override any preceding commands apparently. This meant running ensure synchronously in eg. `cycleWindowWidth` would fail to actually resize wayland windows. Instead we actually fix the underlying problem by running ensure when `size-changed` happens. As an added benefit there's no reason to handle fullscreen toggling separately. Some technical notes: - We need to connect `size-changed` after initial positioning is done, this is currently done on the actor's first `show` signal. - ensure will itself resize windows, maximizing their height. This doesn't create an infinite loop as long as the window settles into a stable height.
Languages
JavaScript
97.4%
Shell
2.5%
CSS
0.1%