dwlb

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 5680f405db06a8a69b70d5ac6c2dd086ee30ee4a
parent e668bfa49604af979d0d9482595c06ca080abdcd
Author: Arnor Nolen <andrey1gorbulin@gmail.com>
Date:   Thu, 20 Apr 2023 21:29:46 +0300

Fixed hiding the bar

Diffstat:
Mdwlb.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dwlb.c b/dwlb.c @@ -882,12 +882,12 @@ show_bar(Bar *bar) DIE("Could not create layer_surface"); zwlr_layer_surface_v1_add_listener(bar->layer_surface, &layer_surface_listener, bar); - zwlr_layer_surface_v1_set_size(bar->layer_surface, 0, bar->height); + zwlr_layer_surface_v1_set_size(bar->layer_surface, 0, bar->height / buffer_scale); zwlr_layer_surface_v1_set_anchor(bar->layer_surface, (bar->bottom ? ZWLR_LAYER_SURFACE_V1_ANCHOR_BOTTOM : ZWLR_LAYER_SURFACE_V1_ANCHOR_TOP) | ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT | ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT); - zwlr_layer_surface_v1_set_exclusive_zone(bar->layer_surface, bar->height); + zwlr_layer_surface_v1_set_exclusive_zone(bar->layer_surface, bar->height / buffer_scale); wl_surface_commit(bar->wl_surface); bar->hidden = false; @@ -906,7 +906,7 @@ hide_bar(Bar *bar) static void setup_bar(Bar *bar) { - bar->height = height; + bar->height = height * buffer_scale; bar->textpadding = textpadding; bar->bottom = bottom; bar->hidden = hidden;