aboutsummaryrefslogtreecommitdiff
path: root/swaybar/bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'swaybar/bar.c')
-rw-r--r--swaybar/bar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/bar.c b/swaybar/bar.c
index c6596864..f3767409 100644
--- a/swaybar/bar.c
+++ b/swaybar/bar.c
@@ -152,7 +152,7 @@ void bar_setup(struct bar *bar, const char *socket_path, const char *bar_id) {
struct output_state *output = bar_output->registry->outputs->items[bar_output->idx];
- bar_output->window = window_setup(bar_output->registry, output->width, 30, false);
+ bar_output->window = window_setup(bar_output->registry, output->width * output->scale, 30 * output->scale, false);
if (!bar_output->window) {
sway_abort("Failed to create window.");
}