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

Method remove_observer

src/server/scene/surface_stack.cpp:582–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580}
581
582void ms::SurfaceStack::remove_observer(std::weak_ptr<ms::Observer> const& observer)
583{
584 auto o = observer.lock();
585 if (!o)
586 BOOST_THROW_EXCEPTION(std::logic_error("Invalid observer (destroyed)"));
587
588 o->end_observation();
589
590 observers.remove(o);
591}
592
593auto ms::SurfaceStack::stacking_order_of(SurfaceSet const& surfaces) const -> SurfaceList
594{

Callers 8

~XWaylandWMMethod · 0.45
stopMethod · 0.45
~WlSeatMethod · 0.45
stopMethod · 0.45

Calls 3

lockMethod · 0.45
end_observationMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected