mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-01 01:40:36 -05:00
parent
21c01c9ee0
commit
a4a3a4954a
4 changed files with 26 additions and 5 deletions
13
output.c
13
output.c
|
|
@ -123,6 +123,17 @@ handle_output_frame(struct wl_listener *listener, void *data)
|
|||
wlr_output_swap_buffers(output->wlr_output, NULL, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
handle_output_mode(struct wl_listener *listener, void *data)
|
||||
{
|
||||
struct cg_output *output = wl_container_of(listener, output, mode);
|
||||
|
||||
struct cg_view *view;
|
||||
wl_list_for_each(view, &output->server->views, link) {
|
||||
view_position(view);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
handle_output_destroy(struct wl_listener *listener, void *data)
|
||||
{
|
||||
|
|
@ -160,6 +171,8 @@ handle_new_output(struct wl_listener *listener, void *data)
|
|||
|
||||
server->output->frame.notify = handle_output_frame;
|
||||
wl_signal_add(&wlr_output->events.frame, &server->output->frame);
|
||||
server->output->mode.notify = handle_output_mode;
|
||||
wl_signal_add(&wlr_output->events.mode, &server->output->mode);
|
||||
server->output->destroy.notify = handle_output_destroy;
|
||||
wl_signal_add(&wlr_output->events.destroy, &server->output->destroy);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue