compositor/surface: fix surface opaque and input regions not being updated (#10055)
This commit is contained in:
parent
a17cea8b8c
commit
2da4f427ea
1 changed files with 4 additions and 4 deletions
|
|
@ -195,25 +195,25 @@ CWLSurfaceResource::CWLSurfaceResource(SP<CWlSurface> resource_) : resource(reso
|
||||||
});
|
});
|
||||||
|
|
||||||
resource->setSetInputRegion([this](CWlSurface* r, wl_resource* region) {
|
resource->setSetInputRegion([this](CWlSurface* r, wl_resource* region) {
|
||||||
|
pending.updated.input = true;
|
||||||
|
|
||||||
if (!region) {
|
if (!region) {
|
||||||
pending.input = CBox{{}, {INT32_MAX, INT32_MAX}};
|
pending.input = CBox{{}, {INT32_MAX, INT32_MAX}};
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
pending.updated.input = true;
|
|
||||||
|
|
||||||
auto RG = CWLRegionResource::fromResource(region);
|
auto RG = CWLRegionResource::fromResource(region);
|
||||||
pending.input = RG->region;
|
pending.input = RG->region;
|
||||||
});
|
});
|
||||||
|
|
||||||
resource->setSetOpaqueRegion([this](CWlSurface* r, wl_resource* region) {
|
resource->setSetOpaqueRegion([this](CWlSurface* r, wl_resource* region) {
|
||||||
|
pending.updated.opaque = true;
|
||||||
|
|
||||||
if (!region) {
|
if (!region) {
|
||||||
pending.opaque = CBox{{}, {}};
|
pending.opaque = CBox{{}, {}};
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
pending.updated.opaque = true;
|
|
||||||
|
|
||||||
auto RG = CWLRegionResource::fromResource(region);
|
auto RG = CWLRegionResource::fromResource(region);
|
||||||
pending.opaque = RG->region;
|
pending.opaque = RG->region;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue