From fb2c8e5f42afe895a846bb4539a60a36e1119249 Mon Sep 17 00:00:00 2001 From: Raphael Robatsch Date: Sun, 27 Nov 2022 10:41:05 +0100 Subject: [PATCH] fix bug where hidden bar cannot be shown anymore --- src/bar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bar.cpp b/src/bar.cpp index fab5a8f..507ce62 100644 --- a/src/bar.cpp +++ b/src/bar.cpp @@ -200,7 +200,7 @@ void Bar::click(Monitor* mon, int x, int, int btn) void Bar::layerSurfaceConfigure(uint32_t serial, uint32_t width, uint32_t height) { zwlr_layer_surface_v1_ack_configure(_layerSurface.get(), serial); - if (width == _bufs->width && height == _bufs->height) { + if (_bufs && width == _bufs->width && height == _bufs->height) { return; } _bufs.emplace(width, height, WL_SHM_FORMAT_XRGB8888);