]> git.mdlowis.com Git - proto/labwc.git/commit
output: handle outputs that are enabled but not yet added
authorJohn Lindgren <john@jlindgren.net>
Fri, 27 Dec 2024 21:05:40 +0000 (16:05 -0500)
committerJohan Malm <johanmalm@users.noreply.github.com>
Tue, 31 Dec 2024 16:32:42 +0000 (16:32 +0000)
commit49eeee387bbb4977c6486e6aa797074bad177513
tree83c4e2985718af1a74d837c0bca72d151dda9786
parent03be489eb973279585e0ca4ddde9820e1017ca86
output: handle outputs that are enabled but not yet added

output_config_apply() currently assumes that any enabled outputs have
already been added to the wlr_output_layout. However, at startup,
wlroots will report that outputs are enabled if they were previously in
use by e.g. the Linux console - but they are not yet in the layout.

output_config_apply() never encountered this case before now because the
initial modeset was performed by another code path, but now with the new
autoEnableOutputs option (next commit), it needs to be able to handle
the initial modeset as well.
src/output.c