mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-22 12:25:38 +02:00
bar/wayland: remove commented out code
This commit is contained in:
parent
d929c12ecb
commit
d80fbd4084
1 changed files with 0 additions and 34 deletions
|
@ -880,40 +880,6 @@ setup(struct bar *_bar)
|
||||||
ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT |
|
ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT |
|
||||||
top_or_bottom);
|
top_or_bottom);
|
||||||
|
|
||||||
#if 0
|
|
||||||
int height = bar->height_with_border;
|
|
||||||
height /= backend->scale;
|
|
||||||
height *= backend->scale;
|
|
||||||
bar->height = height - 2 * bar->border.width;
|
|
||||||
bar->height_with_border = height;
|
|
||||||
|
|
||||||
zwlr_layer_surface_v1_set_size(
|
|
||||||
backend->layer_surface, 0, bar->height_with_border / backend->scale);
|
|
||||||
zwlr_layer_surface_v1_set_exclusive_zone(
|
|
||||||
backend->layer_surface,
|
|
||||||
(bar->height_with_border + (bar->location == BAR_TOP
|
|
||||||
? bar->border.bottom_margin
|
|
||||||
: bar->border.top_margin))
|
|
||||||
/ backend->scale);
|
|
||||||
|
|
||||||
zwlr_layer_surface_v1_set_margin(
|
|
||||||
backend->layer_surface,
|
|
||||||
bar->border.top_margin / backend->scale,
|
|
||||||
bar->border.right_margin / backend->scale,
|
|
||||||
bar->border.bottom_margin / backend->scale,
|
|
||||||
bar->border.left_margin / backend->scale
|
|
||||||
);
|
|
||||||
|
|
||||||
/* Trigger a 'configure' event, after which we'll have the width */
|
|
||||||
wl_surface_commit(backend->surface);
|
|
||||||
wl_display_roundtrip(backend->display);
|
|
||||||
|
|
||||||
if (backend->width == -1 ||
|
|
||||||
backend->height != bar->height_with_border) {
|
|
||||||
LOG_ERR("failed to get panel width");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
update_size(backend);
|
update_size(backend);
|
||||||
|
|
||||||
assert(backend->monitor == NULL ||
|
assert(backend->monitor == NULL ||
|
||||||
|
|
Loading…
Add table
Reference in a new issue