commit 4fea92ef0ce38661156e8605211b5a7fa9550745
parent ca862a5bd45ef094d0f0de5a0765224524b74c48
Author: S. Christoffer Eliesen <christoffer@eliesen.no>
Date: Wed, 21 Oct 2015 23:59:01 +0200
config: Don't try to apply bad output resolution.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;