diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-02-15 03:01:19 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-02-15 03:01:19 -0500 |
| commit | e14b0d66bf61cdf7a4287d9522261e103a087d04 (patch) | |
| tree | cdb27c19bcc60ca7074fa300acd25f7b57b0d2c9 /swaybar/bar.c | |
| parent | 79eb8c8b568c52ad5e4359a7d7452148b943bf64 (diff) | |
apply_output_config: dpms on before modeset
On the DRM backend, if an output is dpms'd off and a different output is
hotplugged, the CRTC for the output is reclaimed. When modesetting an
output without a CRTC, a CRTC will not be given to an output that is not
desired to be enabled. This splits setting the dpms state in
apply_output_config. If the output should be dpms on, the it is enabled
before attempting to modeset. Otherwise, it is dpms'd off after setting
everything else.
This also adds DPMS_ON to the default output configs.
Diffstat (limited to 'swaybar/bar.c')
0 files changed, 0 insertions, 0 deletions
