mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-31 22:25:27 -04:00
output: add usable area
This area will be defined by the layer shell surfaces, as the total output layout area minus areas occupied by layer shell surfaces. It is meant for layer shell surfaces to reserve space that will not be used for views, such as a status bar.
This commit is contained in:
parent
c3a3539080
commit
dc090aa517
2 changed files with 4 additions and 0 deletions
2
output.c
2
output.c
|
|
@ -56,6 +56,8 @@ output_enable(struct cg_output *output)
|
|||
wlr_output_enable(wlr_output, true);
|
||||
wlr_output_commit(wlr_output);
|
||||
|
||||
output->usable_area = *wlr_output_layout_get_box(output->server->output_layout, wlr_output);
|
||||
|
||||
struct wlr_scene_output *scene_output;
|
||||
wl_list_for_each (scene_output, &output->server->scene->outputs, link) {
|
||||
if (scene_output->output == wlr_output) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue