mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
output: chase swaywm/wlroots@cc56b4f073
output.c:456:36: error: no member named 'transform' in 'struct wlr_output::(anonymous at /usr/local/include/wlr/types/wlr_output.h:154:2)'
wl_signal_add(&wlr_output->events.transform, &output->transform);
~~~~~~~~~~~~~~~~~~ ^
Based on 2c76923282
This commit is contained in:
parent
82bad3f0fc
commit
a5aa497ff1
2 changed files with 12 additions and 9 deletions
19
output.c
19
output.c
|
|
@ -358,17 +358,20 @@ frame_done:
|
|||
}
|
||||
|
||||
static void
|
||||
handle_output_transform(struct wl_listener *listener, void *data)
|
||||
handle_output_commit(struct wl_listener *listener, void *data)
|
||||
{
|
||||
struct cg_output *output = wl_container_of(listener, output, transform);
|
||||
struct cg_output *output = wl_container_of(listener, output, commit);
|
||||
struct wlr_output_event_commit *event = data;
|
||||
|
||||
if (!output->wlr_output->enabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
struct cg_view *view;
|
||||
wl_list_for_each (view, &output->server->views, link) {
|
||||
view_position(view);
|
||||
if (event->committed & WLR_OUTPUT_STATE_TRANSFORM) {
|
||||
struct cg_view *view;
|
||||
wl_list_for_each (view, &output->server->views, link) {
|
||||
view_position(view);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -393,8 +396,8 @@ output_destroy(struct cg_output *output)
|
|||
struct cg_server *server = output->server;
|
||||
|
||||
wl_list_remove(&output->destroy.link);
|
||||
wl_list_remove(&output->commit.link);
|
||||
wl_list_remove(&output->mode.link);
|
||||
wl_list_remove(&output->transform.link);
|
||||
wl_list_remove(&output->damage_frame.link);
|
||||
wl_list_remove(&output->damage_destroy.link);
|
||||
wl_list_remove(&output->link);
|
||||
|
|
@ -450,10 +453,10 @@ handle_new_output(struct wl_listener *listener, void *data)
|
|||
output->damage = wlr_output_damage_create(wlr_output);
|
||||
wl_list_insert(&server->outputs, &output->link);
|
||||
|
||||
output->commit.notify = handle_output_commit;
|
||||
wl_signal_add(&wlr_output->events.commit, &output->commit);
|
||||
output->mode.notify = handle_output_mode;
|
||||
wl_signal_add(&wlr_output->events.mode, &output->mode);
|
||||
output->transform.notify = handle_output_transform;
|
||||
wl_signal_add(&wlr_output->events.transform, &output->transform);
|
||||
output->destroy.notify = handle_output_destroy;
|
||||
wl_signal_add(&wlr_output->events.destroy, &output->destroy);
|
||||
output->damage_frame.notify = handle_output_damage_frame;
|
||||
|
|
|
|||
2
output.h
2
output.h
|
|
@ -13,8 +13,8 @@ struct cg_output {
|
|||
struct wlr_output *wlr_output;
|
||||
struct wlr_output_damage *damage;
|
||||
|
||||
struct wl_listener commit;
|
||||
struct wl_listener mode;
|
||||
struct wl_listener transform;
|
||||
struct wl_listener destroy;
|
||||
struct wl_listener damage_frame;
|
||||
struct wl_listener damage_destroy;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue