diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-09-01 03:47:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-01 03:47:25 -0500 |
commit | 252a1b9c13e21ca6647233c7023251a2050c32bf (patch) | |
tree | 8ab4dc5e9a7768723f2cceac8f763ea203aa8a1d /include/wlr | |
parent | e91c91d45544d7bd435e7628dcafaa346c5310b9 (diff) | |
parent | 6d26fda57c4b8345e79cda66dc243683b8c1d453 (diff) |
Merge pull request #128 from acrisci/feature/layout-autoconfiguration
implement output layout auto configuration
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_output.h | 1 | ||||
-rw-r--r-- | include/wlr/types/wlr_output_layout.h | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index 11160d33..3371dcb5 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -37,6 +37,7 @@ struct wlr_output { struct { struct wl_signal frame; struct wl_signal resolution; + struct wl_signal destroy; } events; struct { diff --git a/include/wlr/types/wlr_output_layout.h b/include/wlr/types/wlr_output_layout.h index b1253eb1..78127f19 100644 --- a/include/wlr/types/wlr_output_layout.h +++ b/include/wlr/types/wlr_output_layout.h @@ -67,4 +67,15 @@ void wlr_output_layout_closest_point(struct wlr_output_layout *layout, struct wlr_box *wlr_output_layout_get_box( struct wlr_output_layout *layout, struct wlr_output *reference); +/** +* Add an auto configured output to the layout. This will place the output in a +* sensible location in the layout. The coordinates of the output in the layout +* may adjust dynamically when the layout changes. If the output is already in +* the layout, it will become auto configured. If the position of the output is +* set such as with `wlr_output_layout_move()`, the output will become manually +* configured. +*/ +void wlr_output_layout_add_auto(struct wlr_output_layout *layout, + struct wlr_output *output); + #endif |