mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
output: Add output_update_usable_area/all_usable_areas()
Move the desktop_arrange_all_views() call outside layers_arrange() into a new function, output_update_usable_area(). The new function currently does exactly what layers_arrange() used to, but will be expanded in a later commit. Add output_update_all_usable_areas(), which is the same as calling output_update_usable_area() for each output, but only calls desktop_arrange_all_views() once. Rebased and slightly modified by @Consolatis
This commit is contained in:
parent
af56b68041
commit
ed31381eb8
4 changed files with 54 additions and 22 deletions
|
|
@ -97,10 +97,7 @@ seat_disinhibit_input(struct seat *seat)
|
|||
* Triggers a refocus of the topmost surface layer if necessary
|
||||
* TODO: Make layer surface focus per-output based on cursor position
|
||||
*/
|
||||
struct output *output;
|
||||
wl_list_for_each(output, &seat->server->outputs, link) {
|
||||
layers_arrange(output);
|
||||
}
|
||||
output_update_all_usable_areas(seat->server, /*enforce_view_arrange*/ false);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue