MCPcopy Create free account
hub / github.com/canonical/mir / remove_surface

Method remove_surface

src/server/shell/system_compositor_window_manager.cpp:134–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void msh::SystemCompositorWindowManager::remove_surface(
135 std::shared_ptr<ms::Session> const& session,
136 std::weak_ptr<ms::Surface> const& surface)
137{
138 if (auto const locked = surface.lock())
139 session->destroy_surface(locked);
140
141 std::lock_guard lock{mutex};
142 output_map.erase(surface);
143}
144
145void msh::SystemCompositorWindowManager::add_display(mir::geometry::Rectangle const& /*area*/)
146{

Callers

nothing calls this directly

Calls 3

lockMethod · 0.45
destroy_surfaceMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected