Hyprland/src
Eren 4ab3a40398
screenshare: adjust session cleanup and event emission order (#14229)
* fix(screenshare): adjust session cleanup and event emission order

Revised the handling of `stoppedListener` initialization in
`getManagedSession` to ensure correct scoping and lifecycle management.
Updated the `stop` method in `CScreenshareSession` to adjust the order
of `screenshareEvents` and `stopped.emit()` to prevent potential
use-after-free scenarios.

* fix(screenshare): ensure managedSession removal uses consistent target reference

This change updates the lambda in the stopped listener to use
a pre-fetched target pointer for comparison when erasing sessions.

* fix(screenshare): use early-return and smart ptr comparison in session cleanup
2026-05-01 23:50:02 +01:00
..
config config/lua: add noop 2026-05-01 12:50:55 +01:00
debug helpers/systemInfo: extract info fns (#14222) 2026-04-30 22:31:29 +01:00
desktop config/workspace-rules: support modifying persistent and monitor (#14217) 2026-04-30 20:10:03 +01:00
devices errorOverlay: modernize, refactor, use GPU rendering (#14122) 2026-04-19 18:47:49 +01:00
errorOverlay config/lua: init lua config manager, use lua if available (#13817) 2026-04-26 15:16:36 +01:00
event config: cleanup the entire config infrastructure (#13785) 2026-03-20 17:52:37 +00:00
helpers helpers/systemInfo: extract info fns (#14222) 2026-04-30 22:31:29 +01:00
i18n config/lua: init lua config manager, use lua if available (#13817) 2026-04-26 15:16:36 +01:00
init init: drop CAP_SYS_NICE from ambient set after gaining SCHED_RR (#14082) 2026-04-15 23:20:20 +01:00
layout cleanup: avoid repeated weak_ptr::lock() usage in MasterAlgorithm (#14226) 2026-04-30 22:48:14 +01:00
managers screenshare: adjust session cleanup and event emission order (#14229) 2026-05-01 23:50:02 +01:00
notification NotificationOverlay: take reserved space into account (#14184) 2026-04-27 20:50:51 +01:00
pch core: move all shared_ptrs from the STL to hyprutils (#9143) 2025-01-23 21:55:41 +01:00
plugins config/lua: init lua config manager, use lua if available (#13817) 2026-04-26 15:16:36 +01:00
protocols xdg-shell: queue state updates for toplevel (#14227) 2026-04-30 20:41:55 +01:00
render desktop/window: refactor over fullscreen state 2026-04-29 22:05:32 +01:00
xwayland config/lua: init lua config manager, use lua if available (#13817) 2026-04-26 15:16:36 +01:00
Compositor.cpp helpers/systemInfo: extract info fns (#14222) 2026-04-30 22:31:29 +01:00
Compositor.hpp desktop/window: refactor over fullscreen state 2026-04-29 22:05:32 +01:00
defines.hpp layout: rethonk layouts from the ground up (#12890) 2026-02-21 21:30:39 +00:00
includes.hpp core: drop the legacy renderer (#10408) 2025-05-15 10:13:24 +01:00
macros.hpp config/lua: init lua config manager, use lua if available (#13817) 2026-04-26 15:16:36 +01:00
main.cpp helpers/systemInfo: extract info fns (#14222) 2026-04-30 22:31:29 +01:00
SharedDefs.hpp event: refactor HookSystem into a typed event bus (#13333) 2026-02-22 23:30:10 +00:00
version.h.in build: replace generateVersion.sh (#12110) 2025-10-23 20:50:32 +01:00