mirror of
https://github.com/swaywm/sway.git
synced 2025-11-16 06:59:49 -05:00
Merge pull request #2950 from emersion/presentation-time
Implement the presentation-time protocol
This commit is contained in:
commit
ea2497d35c
5 changed files with 108 additions and 89 deletions
|
|
@ -103,6 +103,7 @@ void output_enable(struct sway_output *output, struct output_config *oc) {
|
|||
wl_signal_add(&wlr_output->events.mode, &output->mode);
|
||||
wl_signal_add(&wlr_output->events.transform, &output->transform);
|
||||
wl_signal_add(&wlr_output->events.scale, &output->scale);
|
||||
wl_signal_add(&wlr_output->events.present, &output->present);
|
||||
wl_signal_add(&output->damage->events.frame, &output->damage_frame);
|
||||
wl_signal_add(&output->damage->events.destroy, &output->damage_destroy);
|
||||
|
||||
|
|
@ -214,6 +215,7 @@ void output_disable(struct sway_output *output) {
|
|||
wl_list_remove(&output->mode.link);
|
||||
wl_list_remove(&output->transform.link);
|
||||
wl_list_remove(&output->scale.link);
|
||||
wl_list_remove(&output->present.link);
|
||||
wl_list_remove(&output->damage_destroy.link);
|
||||
wl_list_remove(&output->damage_frame.link);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue