diff options
author | 2021-01-26 00:13:42 +0100 | |
---|---|---|
committer | 2021-01-26 10:26:37 +0100 | |
commit | 4d43f1dd996e61e38d89adf0ad1435dac32e38a5 (patch) | |
tree | e59caa9393c0f838d67028f2ac9a5fe7f3202003 /CONTRIBUTING.md | |
parent | Fix typo in bug reporting template (diff) | |
download | sway-4d43f1dd996e61e38d89adf0ad1435dac32e38a5.tar.gz sway-4d43f1dd996e61e38d89adf0ad1435dac32e38a5.tar.zst sway-4d43f1dd996e61e38d89adf0ad1435dac32e38a5.zip |
desktop/output: Disable head if mode is NULL
wlr_output_configuration_head_v1_create normally fills out the head
"enabled" field to match the wlr_output state. We overwrite this to also
set the head as enabled if it is only turned off with DPMS.
However, in some cases we may not have a mode for this display, in which
case setting it as enabled will lead to a segfault later on. Therefore,
enabled conditional on the presence of a mode.
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions