From 6ea02f3064736b7f53e5b28c16ee74f5665ce1b8 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 16 Jul 2016 10:04:18 -0400 Subject: Initial pass on HiDPI support --- sway/handlers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sway/handlers.c') 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 } static struct wlc_geometry compute_panel_geometry(struct panel_config *config) { - const struct wlc_size resolution = *wlc_output_get_resolution(config->output); + struct wlc_size resolution; + wlc_output_get_scaled_size(config->output, &resolution); const struct wlc_geometry *old = wlc_view_get_geometry(config->handle); struct wlc_geometry new; -- cgit v1.2.3