core/surface: drop map/unmap events in member funcs
causes loops
This commit is contained in:
parent
fcff2dcac2
commit
73d09953e8
2 changed files with 2 additions and 4 deletions
|
|
@ -82,11 +82,13 @@ CWLSubsurfaceResource::CWLSubsurfaceResource(SP<CWlSubsurface> resource_, SP<CWL
|
|||
listeners.commitSurface = surface->events.commit.registerListener([this](std::any d) {
|
||||
if (surface->current.buffer && !surface->mapped) {
|
||||
surface->map();
|
||||
surface->events.map.emit();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!surface->current.buffer && surface->mapped) {
|
||||
surface->unmap();
|
||||
surface->events.unmap.emit();
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue