fix bug where hidden bar cannot be shown anymore
This commit is contained in:
parent
6e464bf35d
commit
fb2c8e5f42
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user