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 | Hide noop output in IPC (diff) | |
download | sway-7f8ea60e71d3185f47954844d9e974bdb49b0c41.tar.gz sway-7f8ea60e71d3185f47954844d9e974bdb49b0c41.tar.zst sway-7f8ea60e71d3185f47954844d9e974bdb49b0c41.zip |
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) { | |||
176 | } | 176 | } |
177 | 177 | ||
178 | bool apply_output_config(struct output_config *oc, struct sway_output *output) { | 178 | bool apply_output_config(struct output_config *oc, struct sway_output *output) { |
179 | if (output == root->noop_output) { | ||
180 | return false; | ||
181 | } | ||
182 | |||
179 | struct wlr_output *wlr_output = output->wlr_output; | 183 | struct wlr_output *wlr_output = output->wlr_output; |
180 | 184 | ||
181 | if (oc && !oc->enabled) { | 185 | if (oc && !oc->enabled) { |