mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-09 15:19:11 +02:00
Add missing functionality to output configuration
This commit is contained in:
parent
33d245b60b
commit
6fdc55c9a5
1 changed files with 5 additions and 0 deletions
5
output.c
5
output.c
|
|
@ -528,6 +528,10 @@ void
|
|||
output_configure(struct cg_server* server, struct cg_output *output) {
|
||||
struct wlr_output *wlr_output = output->wlr_output;
|
||||
struct cg_output_config *config = output_find_config(server, wlr_output);
|
||||
if(output->wlr_output->enabled) {
|
||||
wlr_output_layout_remove(server->output_layout, wlr_output);
|
||||
}
|
||||
|
||||
if(config == NULL) {
|
||||
wlr_output_layout_add_auto(server->output_layout, wlr_output);
|
||||
|
||||
|
|
@ -538,6 +542,7 @@ output_configure(struct cg_server* server, struct cg_output *output) {
|
|||
}
|
||||
} else {
|
||||
output_set_mode(wlr_output, config->pos.width, config->pos.height, config->refresh_rate);
|
||||
wlr_output_layout_add(server->output_layout, wlr_output, config->pos.x, config->pos.y);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue