mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-22 15:33:49 -07:00
core/surface: drop map/unmap events in member funcs
causes loops
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user