diff options
| author | Arnor Nolen <andrey1gorbulin@gmail.com> | 2023-04-20 21:29:46 +0300 |
|---|---|---|
| committer | Arnor Nolen <andrey1gorbulin@gmail.com> | 2023-04-20 21:29:46 +0300 |
| commit | 5680f405db06a8a69b70d5ac6c2dd086ee30ee4a (patch) | |
| tree | 13a031fe637c5423b70bd22cf6bab45a6b993816 | |
| parent | e668bfa49604af979d0d9482595c06ca080abdcd (diff) | |
| download | dwlb-5680f405db06a8a69b70d5ac6c2dd086ee30ee4a.tar.gz | |
Fixed hiding the bar
| -rw-r--r-- | dwlb.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |