aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-03-25 00:40:47 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2023-03-25 00:40:47 +0100
commit8b0902af0ba4bbd0241150ec52cc1c77686a8605 (patch)
tree3b5bd75aaa9668cfafd1b6ab8db8be279e0620b2
parent39d524489eb8996c9bf7d292bf6df3c022adccf7 (diff)
add NULL monitor to config to prevent crash on unkown monitor
-rw-r--r--config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.h b/config.h
index f2ce640..a7ab545 100644
--- a/config.h
+++ b/config.h
@@ -37,6 +37,7 @@ static const MonitorRule monrules[] = {
{ "DP-2", 0.55, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, 0, 0 },
{ "DP-3", 0.55, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, 1920, 0 },
{ "HDMI-A-1", 0.55, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, 3840, 0 },
+ { NULL, 0.55, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 },
};
/* keyboard */