diff options
author | 2016-07-29 09:14:26 -0400 | |
---|---|---|
committer | 2016-07-29 09:14:26 -0400 | |
commit | 3f83968d304c4295705d1cfb33ac723959519f23 (patch) | |
tree | eb01e053446fd886eb60c2a60a6fbdaaea295604 /sway/handlers.c | |
parent | Document scale factor configuration in sway(5) (diff) | |
download | sway-3f83968d304c4295705d1cfb33ac723959519f23.tar.gz sway-3f83968d304c4295705d1cfb33ac723959519f23.tar.zst sway-3f83968d304c4295705d1cfb33ac723959519f23.zip |
Fix swaybg sizing on hidpi outputs
Diffstat (limited to 'sway/handlers.c')
-rw-r--r-- | sway/handlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index cb608bec..7d7b2539 100644 --- a/sway/handlers.c +++ b/sway/handlers.c | |||
@@ -107,7 +107,7 @@ static void update_panel_geometries(wlc_handle output) { | |||
107 | 107 | ||
108 | static void update_background_geometry(struct background_config *config) { | 108 | static void update_background_geometry(struct background_config *config) { |
109 | struct wlc_geometry geometry = wlc_geometry_zero; | 109 | struct wlc_geometry geometry = wlc_geometry_zero; |
110 | geometry.size = *wlc_output_get_resolution(config->output); | 110 | output_get_scaled_size(config->output, &geometry.size); |
111 | wlc_view_set_geometry(config->handle, 0, &geometry); | 111 | wlc_view_set_geometry(config->handle, 0, &geometry); |
112 | } | 112 | } |
113 | 113 | ||