struct output *output_from_wlr_output(struct server *server,
struct wlr_output *wlr_output);
void output_update_usable_area(struct output *output);
-void output_update_all_usable_areas(struct server *server, bool enforce_view_arrange);
+void output_update_all_usable_areas(struct server *server, bool layout_changed);
struct wlr_box output_usable_area_in_layout_coords(struct output *output);
struct wlr_box output_usable_area_from_cursor_coords(struct server *server);
void handle_output_power_manager_set_mode(struct wl_listener *listener,
static void
output_update_for_layout_change(struct server *server)
{
- output_update_all_usable_areas(server, /*enforce_view_arrange*/ true);
+ output_update_all_usable_areas(server, /*layout_changed*/ true);
/*
* "Move" each wlr_output_cursor (in per-output coordinates) to
}
void
-output_update_all_usable_areas(struct server *server, bool enforce_view_arrange)
+output_update_all_usable_areas(struct server *server, bool layout_changed)
{
bool usable_area_changed = false;
struct output *output;
wl_list_for_each(output, &server->outputs, link) {
usable_area_changed |= update_usable_area(output);
}
- if (usable_area_changed || enforce_view_arrange) {
+ if (usable_area_changed || layout_changed) {
desktop_arrange_all_views(server);
}
}
* Triggers a refocus of the topmost surface layer if necessary
* TODO: Make layer surface focus per-output based on cursor position
*/
- output_update_all_usable_areas(seat->server, /*enforce_view_arrange*/ false);
+ output_update_all_usable_areas(seat->server, /*layout_changed*/ false);
}
static void