forked from swaywm/wlroots
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add relative outputs to wlr_output_layout
An output that is made relative to another output will appear on one of the borders of the parent output. Which border the outputs attaches to can be configured. An exception to this is the SAME_AS configuration. In this case child output is positioned at the same location as the parent output. When the parent output changes position, the child oututs will follow in order to maintain teh same relative position. Relative outputs may overlap depending on the configuration. While the original issue had detection of overlapping outputs as a feature, this better fits in the compositor, since the library would have to make assumptions about the wanted behavior. An implementation for rootston can be found in later commits. When an ouput is removed and is a parent of another output, the child output is fixed at its current position. If the compositor requires different behaviour it can do this in response to the destroy signal. Fixes swaywm#550
- Loading branch information
1 parent
d3670df
commit 3c62f4b
Showing
2 changed files
with
208 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters