summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.hpp
Commit message (Collapse)AuthorAgeFilesLines
* core: move all shared_ptrs from the STL to hyprutils (#9143)Vaxry2025-01-231-1/+1
|
* core: cleanup header includes (#9088)user1111111111111111111111111111111112025-01-171-1/+1
| | | Cleanup some unneeded includes to speed up compilation
* internal: improve version query and define HYPRLAND_VERSION (#8034)Toni500github2024-10-111-0/+1
|
* core: add a --systeminfo parameter to gather systeminfo without runningvaxerski2024-09-251-0/+3
|
* internal: some minor fd/socket cleanups and make logging thread safe (#7123)Tom Englund2024-07-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bezier: dont loop on float values Using a floating-point loop variable with a fixed increment can cause precision errors over time due to the nature of floating-point arithmetic. and cause undesired effects. ex iteration 1 = 0.10000000149011611938 iteration 2 = 0.20000000298023223877 eventually.. iteration 8 = 0.80000001192092895508 iteration 9 = 0.89999997615814208984 * hyprctl: close sockets on destruction store socketpath and close the fd and unlink the socket path on exit. * eventloopmgr: close the timerfd close the timerfd on exit. * debug: make logging thread safe instead of opening and closing the logfile on each write open it on init and close it on compositor exit. also add a mutex so accidently using logging from a thread like the watchdog or similiar doesnt cause issues. * xwl: clean up fd logic check if the fd is actually opened before closing, and close the pipesource FD on exit.
* internal: Add functions to hyprctl header (#6745)Yusuf2024-07-071-0/+4
| | | | | | | | | | | * add functions to hyprctl header * refactor monitor json into own function and add it to header * format hyprctl.hpp * move functions to namespace * move helper functions to class
* core: fix a few asan reported issues and a coredump on exit (#6285)Tom Englund2024-06-031-0/+2
| | | | | | | | | | | | | | | | | | * 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.
* hyprctl: Add Config Flag to `hyprctl systeminfo` (#6160)Gabriel Ford2024-05-251-2/+3
|
* internal: new shared_ptr and weak_ptr implementation (#5883)Vaxry2024-05-051-7/+7
| | | | | | | | | | | 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.
* format: fix formatVaxry2024-03-091-1/+1
|
* hyprctl: hide unmapped windows without -aVaxry2024-03-081-0/+4
|
* pluginapi: allow registering hyprctl commandsVaxry2024-02-051-18/+7
| | | | closes #4616
* hyprctl: move to a class and unify commandsVaxry2024-02-051-15/+25
|
* style/ci: apply clang-format and verify it in ci (#4039)François Conzelmann2023-12-061-2/+1
| | | | | * style: apply clang-format * ci: add new clang-format job to CI
* logging: move to an internal rolling log bufferVaxry2023-11-141-1/+2
| | | | disables logging to the logfile by default
* Plugin System (#1590)Vaxry2023-02-271-3/+3
| | | | | --------- Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
* Added clang format (#1239)Vaxry2022-12-161-7/+8
| | | * clang-format stuff and format files
* hyprctl-nopollvaxerski2022-09-101-2/+3
|
* Multiple improvements to the shutdown procedurevaxerski2022-08-281-0/+2
|
* Use enum for specifying hyprctl output format and change the way flagsbazuin-322022-07-121-0/+5
| | | | are passed for json output
* Make hyprctl thread safevaxerski2022-04-211-0/+5
|
* progressvaxerski2022-04-041-0/+1
|
* IPC is now a socketvaxerski2022-03-211-0/+1
|
* added hyprctlvaxerski2022-03-201-0/+10