mirror of
https://github.com/labwc/labwc.git
synced 2026-03-10 05:33:47 -04:00
layers: take into account usable area when maximizing views
This commit is contained in:
parent
743803de3b
commit
a3ac2f2767
4 changed files with 24 additions and 19 deletions
|
|
@ -809,6 +809,8 @@ new_output_notify(struct wl_listener *listener, void *data)
|
|||
output->wlr_output = wlr_output;
|
||||
output->server = server;
|
||||
output->damage = wlr_output_damage_create(wlr_output);
|
||||
wlr_output_effective_resolution(wlr_output,
|
||||
&output->usable_area.width, &output->usable_area.height);
|
||||
wl_list_insert(&server->outputs, &output->link);
|
||||
|
||||
output->destroy.notify = output_destroy_notify;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue