| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | core: fix a few asan reported issues and a coredump on exit (#6285) | Tom Englund | 2024-06-03 | 1 | -2/+4 |
| | | | | | | | | | | | | | | | | | | | * xwayland: add destructor to CXWM and free resource the wl_event_resource was running upon destruction of the compositor causing a null pointer segfault in onX11Event so ensure the event is removed upon destruction, also free the memory allocated by xcb_errors_context_new and finally call xcb_disconnect on the connection to free the fd and its memory. * hyprctl: dont leak the fd on destruction add a destructor and properly free the fd on destruction * eventloop: add destructor and free event source properly free the wl_event_source upon destruction. | ||||
| * | eventloop: don't call lost timers | Vaxry | 2024-05-07 | 1 | -0/+2 |
| | | |||||
| * | internal: new shared_ptr and weak_ptr implementation (#5883) | Vaxry | 2024-05-05 | 1 | -5/+4 |
| | | | | | | | | | | | | moves std::shared_ptrs to a new implementation Advantages: - you can dereference a weak_ptr directly. This will obviously segfault on a nullptr deref if it's expired. - this is useful to avoid the .lock() hell where we are 100% sure the pointer _should_ be valid. (and if it isn't, it should throw.) - weak_ptrs are still valid while the SP is being destroyed. - reasoning: while an object (e.g. CWindow) is being destroyed, its `weak_ptr self` should be accessible (the sp is still alive, and so is CWindow), but it's not because by stl it's already expired (to prevent resurrection) - this impl solves it differently. w_p is expired, but can still be dereferenced and used. Creating `s_p`s is not possible anymore, though. - this is useful in destructors and callbacks. | ||||
| * | style: run clang-format | Vaxry | 2024-04-08 | 1 | -1/+1 |
| | | |||||
| * | eventloop: move timers to an event loop fd | Vaxry | 2024-04-07 | 1 | -15/+5 |
| | | | | | fixes #5481 | ||||
| * | core: Event loop rework (#5466) | Vaxry | 2024-04-07 | 1 | -0/+46 |
| * Event loop rework * revert missed | |||||
