diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-11-08 09:11:56 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-11-08 09:11:56 +0300 |
| commit | 5ff8b89aafca0143866f93dd7e2f27aee6c2b0f5 (patch) | |
| tree | 79ba91e6291e532555094c9473f07f8dd4bcfb86 /src/input | |
| parent | 927abad4b42d36fc5e5bd91839ba54a5d93a89eb (diff) | |
| download | niri-5ff8b89aafca0143866f93dd7e2f27aee6c2b0f5.tar.gz niri-5ff8b89aafca0143866f93dd7e2f27aee6c2b0f5.tar.bz2 niri-5ff8b89aafca0143866f93dd7e2f27aee6c2b0f5.zip | |
Rework output connection to always go through on_output_config_changed()
This has the following benefits:
1. connector_connected() is now more closely mirroring
connector_disconnected() in that it merely lights up the connector,
and doesn't check if the connector should be off from the config.
2. We can use more complex on/off logic that depends on multiple
connectors. For example, this commit adds logic to only disable the
laptop panel on lid close if there are other connected outputs.
We don't want to disable the laptop panel on lid close if it's the only
connected output because it causes screen lockers to create their
surface from scratch on normal laptop unsuspend, which is undesirable
and also confuses some screen lockers.
Diffstat (limited to 'src/input')
0 files changed, 0 insertions, 0 deletions
