mirror of
https://github.com/NickHu/sway
synced 2024-12-28 22:23:30 +01:00
Merge pull request #851 from thejan2009/output-disable-during-runtime
Handle output disabling during runtime
This commit is contained in:
commit
5c87cc7cb1
1 changed files with 5 additions and 0 deletions
|
@ -859,6 +859,11 @@ void apply_input_config(struct input_config *ic, struct libinput_device *dev) {
|
|||
}
|
||||
|
||||
void apply_output_config(struct output_config *oc, swayc_t *output) {
|
||||
if (oc->enabled == 0) {
|
||||
destroy_output(output);
|
||||
return;
|
||||
}
|
||||
|
||||
if (oc && oc->width > 0 && oc->height > 0) {
|
||||
output->width = oc->width;
|
||||
output->height = oc->height;
|
||||
|
|
Loading…
Reference in a new issue