References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4046
OVLCSHYEKV3OPPZ3GC7KEAMF7YOWHFWE5J6KYGE3OXWQAS62S4XAC EQRGODLKSVSPFSUZU7BV5ER72U4QS4ATSBKV544XXQVKKTOSC7EAC VB73LHGDVI7ZDLCT35D7TICLZAAVEFSDIAJXBJTT5HYMMNMFHJKQC TOFCZFUYVBVEBHMKVG6G5MKCAEF2QCQ4GKMKGQUSJRLGLDZEJF4QC 7B74AT3BXYB7PVW4F6SGQNPMHOU5TEV5TZ54CG6VSQI46XSEKWXQC NLOBELMSKHUSKSMPZ2QSDVIOJRGWV7HNXNIKZ55TMUCH7DI73TAAC NOI4U573ODSPVF6CUC4T7QSYHZGZFHJ4EKTP5Y73LMUZPXK35FKQC PYRALXEFRJ5O2NSVSR7WFJ56QNW2VMWYTBKKGJMDLZCHEU4JXZKQC 6ZKVISYIRGGLYDMIHGXDCHV6N6WYJP2DK3CRJL4AMCZY65OSEYDAC }voidsetgamma(struct wl_listener *listener, void *data){struct wlr_gamma_control_manager_v1_set_gamma_event *event = data;if (!wlr_gamma_control_v1_apply(event->control, &event->output->pending))return;if (!wlr_output_test(event->output)) {wlr_output_rollback(event->output);wlr_gamma_control_v1_send_failed_and_destroy(event->control);}wlr_output_schedule_frame(event->output);