aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <ddevault@linode.com>2016-07-16 10:04:18 -0400
committerLibravatar Drew DeVault <ddevault@linode.com>2016-07-28 14:36:49 -0400
commit6ea02f3064736b7f53e5b28c16ee74f5665ce1b8 (patch)
treecc3c1ac31dd51ec82167f171dfe306ed246ef22f /sway/config.c
parentMerge pull request #796 from Hummer12007/ipc_sub (diff)
downloadsway-6ea02f3064736b7f53e5b28c16ee74f5665ce1b8.tar.gz
sway-6ea02f3064736b7f53e5b28c16ee74f5665ce1b8.tar.zst
sway-6ea02f3064736b7f53e5b28c16ee74f5665ce1b8.zip
Initial pass on HiDPI support
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c
index 5e1887a6..83129524 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -867,6 +867,9 @@ void apply_output_config(struct output_config *oc, swayc_t *output) {
867 struct wlc_size new_size = { .w = oc->width, .h = oc->height }; 867 struct wlc_size new_size = { .w = oc->width, .h = oc->height };
868 wlc_output_set_resolution(output->handle, &new_size); 868 wlc_output_set_resolution(output->handle, &new_size);
869 } 869 }
870 if (oc && oc->scale != 1) {
871 wlc_output_set_scale(output->handle, (int32_t)oc->scale);
872 }
870 873
871 // Find position for it 874 // Find position for it
872 if (oc && oc->x != -1 && oc->y != -1) { 875 if (oc && oc->x != -1 && oc->y != -1) {