diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2019-01-20 19:05:28 +1000 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-01-22 09:55:13 +0100 |
commit | 7f8ea60e71d3185f47954844d9e974bdb49b0c41 (patch) | |
tree | 4ded870c4991206856e49ea35ff5c2f42484be2d /sway/config | |
parent | e815e48ceebfb43627b8d1427400aa51bd93bf7d (diff) | |
download | sway-7f8ea60e71d3185f47954844d9e974bdb49b0c41.tar.xz |
Don't allow noop output to be configured
Diffstat (limited to 'sway/config')
-rw-r--r-- | sway/config/output.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/config/output.c b/sway/config/output.c index ec833ffe..cc5f29db 100644 --- a/sway/config/output.c +++ b/sway/config/output.c @@ -176,6 +176,10 @@ void terminate_swaybg(pid_t pid) { } bool apply_output_config(struct output_config *oc, struct sway_output *output) { + if (output == root->noop_output) { + return false; + } + struct wlr_output *wlr_output = output->wlr_output; if (oc && !oc->enabled) { |