aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorS. Christoffer Eliesen <christoffer@eliesen.no>2015-10-21 23:59:01 +0200
committerS. Christoffer Eliesen <christoffer@eliesen.no>2015-10-21 23:59:01 +0200
commit4fea92ef0ce38661156e8605211b5a7fa9550745 (patch)
tree7cb66192f666094784ab10897eae49a4d451e85d /sway
parentca862a5bd45ef094d0f0de5a0765224524b74c48 (diff)
config: Don't try to apply bad output resolution.
Diffstat (limited to 'sway')
-rw-r--r--sway/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/config.c b/sway/config.c
index b5d442c5..bce074b9 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -284,7 +284,7 @@ bool read_config(FILE *file, bool is_active) {
}
void apply_output_config(struct output_config *oc, swayc_t *output) {
- if (oc && oc->width != -1 && oc->height != -1) {
+ if (oc && oc->width > 0 && oc->height > 0) {
output->width = oc->width;
output->height = oc->height;