Don't allow noop output to be configured

This commit is contained in:
Ryan Dwyer 2019-01-20 19:05:28 +10:00 committed by emersion
parent e815e48cee
commit 7f8ea60e71
3 changed files with 12 additions and 9 deletions

View file

@ -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) {