reject configures if configured
This commit is contained in:
parent
a0c435a6f3
commit
e8100d0d23
1 changed files with 3 additions and 1 deletions
4
dam.c
4
dam.c
|
@ -285,7 +285,9 @@ layer_surface_configure(void *data, struct zwlr_layer_surface_v1 *surface,
|
|||
uint32_t serial, uint32_t width, uint32_t height)
|
||||
{
|
||||
Bar *bar = data;
|
||||
|
||||
|
||||
if (bar->configured)
|
||||
return;
|
||||
bar->width = width * bar->scale;
|
||||
bar->height = height * bar->scale;
|
||||
bar->configured = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue