summaryrefslogtreecommitdiffstats
path: root/sway/handlers.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/handlers.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/handlers.c')
-rw-r--r--sway/handlers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 05da5700..ad035e38 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -56,7 +56,8 @@ static struct background_config *if_background_find_config(struct wl_client *cli
56} 56}
57 57
58static struct wlc_geometry compute_panel_geometry(struct panel_config *config) { 58static struct wlc_geometry compute_panel_geometry(struct panel_config *config) {
59 const struct wlc_size resolution = *wlc_output_get_resolution(config->output); 59 struct wlc_size resolution;
60 wlc_output_get_scaled_size(config->output, &resolution);
60 const struct wlc_geometry *old = wlc_view_get_geometry(config->handle); 61 const struct wlc_geometry *old = wlc_view_get_geometry(config->handle);
61 struct wlc_geometry new; 62 struct wlc_geometry new;
62 63