fix bug where hidden bar cannot be shown anymore

This commit is contained in:
Raphael Robatsch 2022-11-27 10:41:05 +01:00
parent 6e464bf35d
commit fb2c8e5f42
1 changed files with 1 additions and 1 deletions

View File

@ -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);