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