mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
src/layers.c: Prevent re-arranging views if usable_area didn't change
This commit is contained in:
parent
f4aa6118e9
commit
992089e901
1 changed files with 5 additions and 1 deletions
|
|
@ -25,6 +25,7 @@ layers_arrange(struct output *output)
|
|||
wlr_output_effective_resolution(output->wlr_output,
|
||||
&full_area.width, &full_area.height);
|
||||
struct wlr_box usable_area = full_area;
|
||||
struct wlr_box old_usable_area = output->usable_area;
|
||||
|
||||
struct server *server = output->server;
|
||||
struct wlr_scene_output *scene_output =
|
||||
|
|
@ -100,8 +101,11 @@ layers_arrange(struct output *output)
|
|||
}
|
||||
|
||||
/* Finally re-arrange all views based on usable_area */
|
||||
if (old_usable_area.width != output->usable_area.width
|
||||
|| old_usable_area.height != output->usable_area.height) {
|
||||
desktop_arrange_all_views(server);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
output_destroy_notify(struct wl_listener *listener, void *data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue