fix bug where hidden bar cannot be shown anymore
This commit is contained in:
parent
6e464bf35d
commit
fb2c8e5f42
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
void Bar::layerSurfaceConfigure(uint32_t serial, uint32_t width, uint32_t height)
|
||||||
{
|
{
|
||||||
zwlr_layer_surface_v1_ack_configure(_layerSurface.get(), serial);
|
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;
|
return;
|
||||||
}
|
}
|
||||||
_bufs.emplace(width, height, WL_SHM_FORMAT_XRGB8888);
|
_bufs.emplace(width, height, WL_SHM_FORMAT_XRGB8888);
|
||||||
|
|
Loading…
Reference in a new issue