mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-11-27 06:59:54 -05:00
output: reposition views on mode and transform signals
This commit is contained in:
parent
98d1853254
commit
3be6261814
1 changed files with 9 additions and 2 deletions
|
|
@ -22,6 +22,7 @@
|
||||||
#include <wlr/util/region.h>
|
#include <wlr/util/region.h>
|
||||||
|
|
||||||
#include "output.h"
|
#include "output.h"
|
||||||
|
#include "view.h"
|
||||||
|
|
||||||
static void
|
static void
|
||||||
handle_output_damage_destroy(struct wl_listener *listener, void *user_data)
|
handle_output_damage_destroy(struct wl_listener *listener, void *user_data)
|
||||||
|
|
@ -42,7 +43,10 @@ handle_output_transform(struct wl_listener *listener, void *user_data)
|
||||||
|
|
||||||
assert(!output->wlr_output->enabled);
|
assert(!output->wlr_output->enabled);
|
||||||
|
|
||||||
// no-op
|
struct cg_view *view;
|
||||||
|
wl_list_for_each (view, &output->views, link) {
|
||||||
|
cage_view_position(view);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
@ -52,7 +56,10 @@ handle_output_mode(struct wl_listener *listener, void *user_data)
|
||||||
|
|
||||||
assert(!output->wlr_output->enabled);
|
assert(!output->wlr_output->enabled);
|
||||||
|
|
||||||
// no-op
|
struct cg_view *view;
|
||||||
|
wl_list_for_each (view, &output->views, link) {
|
||||||
|
cage_view_position(view);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue