Tor Hedin Brønner a5311fc3dd Handle resizing asynchronously via 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.
2018-04-14 18:52:39 +02:00
2018-01-10 10:00:03 +01:00
2017-09-17 14:19:37 +02:00
2018-02-24 22:28:30 +01:00
2017-09-20 13:32:27 +02:00
2017-09-28 13:29:11 +02:00
2018-02-17 18:05:11 +01:00
S
Description
No description provided
GPL-3.0
2 MiB
Languages
JavaScript 97.4%
Shell 2.5%
CSS 0.1%