mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-02-05 04:06:24 -05:00
output: get scene_output by wlroots function
This commit is contained in:
parent
f71844ab54
commit
46778e6d6c
1 changed files with 1 additions and 7 deletions
8
output.c
8
output.c
|
|
@ -55,13 +55,7 @@ output_enable(struct cg_output *output)
|
|||
wlr_output_enable(wlr_output, true);
|
||||
wlr_output_commit(wlr_output);
|
||||
|
||||
struct wlr_scene_output *scene_output;
|
||||
wl_list_for_each (scene_output, &output->server->scene->outputs, link) {
|
||||
if (scene_output->output == wlr_output) {
|
||||
output->scene_output = scene_output;
|
||||
break;
|
||||
}
|
||||
}
|
||||
output->scene_output = wlr_scene_get_scene_output(output->server->scene, wlr_output);
|
||||
assert(output->scene_output != NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue