The rendered region size is independent on the output transform and
scale. Until now, an output with scale > 1 would render only its
(1 / scale) part; so with a scale of 2, only the top-left quarter (ie.
the left 1/2 of the top 1/2) would be visible.
Similarly, a portrait output (constructed as landscape, rotated by 90
degrees) would have an empty area at its bottom.
This bug was found while testing the output-management PR (#62).
The default value for the `check` argument on `run_command` will soon
change from false to true. Set it explicitly to false in order to
silence the warning, and check the exit status ourselves for a nicer
error message.
There is no technical reason not to allow resizing on opposite edges,
effectively getting single-directional interactive move (which can be
combined with another edge for resizing in the other direction).
The view jumped to the cursor position vertically.
While making this change, I also put some consistency into how position
and size are set (first the original ones are considered, and then only
updated as needed). It doesn't change the functionality, but is easier
to understand IMO.
Until now, focusing a different view didn't move pointer focus to it,
even though it was under the cursor. The pointer had to move in order
to switch its focus. Similar situations should be handled after this
commit.
This targets only surfaces under kiwmi_view, thus only XDG shell. Other
surfaces to be fixed later.
The new code here is copied over from wlroots, with only small
modifications.
This commit ensures that they also cause output damage to happen and
that popups are moved into the visible area.
I browsed the source code of Sway while writing this and took a lot of
inspiration and help from there.