summaryrefslogtreecommitdiff
path: root/src/protocols/OutputManagement.cpp
Commit message (Collapse)AuthorAgeFilesLines
* core: add LIKELY and UNLIKELY macrosvaxerski2025-01-171-11/+11
| | | | helps the compiler optimize
* core: cleanup header includes (#9088)user1111111111111111111111111111111112025-01-171-0/+3
| | | Cleanup some unneeded includes to speed up compilation
* core: Add clang-tidy (#8664)Vaxry2024-12-071-3/+3
| | | | | This adds a .clang-tidy file for us. It's not a strict requirement to be compliant, but I tuned it to be alright.
* internal: cleanup CMonitor usage and fix a few ref hogsVaxry2024-10-261-1/+1
| | | | ref #8221
* internal: Move CMonitor to SP (#8178)Vaxry2024-10-191-12/+10
| | | | | * move monitors to sp * XD
* wlr-output-management: accept 0 refresh ratesVaxry2024-09-301-1/+6
| | | | fixes #7879
* wlr-output-configuration: Improve output configuration (#7571)Vaxry2024-09-261-38/+77
|
* misc: constify the remaining for loops (#7534)Tom Englund2024-08-261-12/+12
| | | now we roll loops at blazing constified speed.
* protocols: refactor protocol logging to a macro (#7324)Tom Englund2024-08-151-2/+0
| | | | | | this avoids the usage of the unique_ptr PROTO::protocol before it has been constructed incase one wants to log something inside the constructor itself, move the logging to macros and print file:linenumber on ERR,CRIT,WARN and classname on the rest of the levels.
* Core: Move to aquamarine (#6608)Vaxry2024-07-211-27/+29
| | | | | | | | | | | | | | Moves Hyprland from wlroots to aquamarine for the backend. --------- Signed-off-by: Vaxry <vaxry@vaxry.net> Co-authored-by: Mihai Fufezan <mihai@fufexan.net> Co-authored-by: Jan Beich <jbeich@FreeBSD.org> Co-authored-by: vaxerski <vaxerski@users.noreply.github.com> Co-authored-by: UjinT34 <41110182+UjinT34@users.noreply.github.com> Co-authored-by: Tom Englund <tomenglund26@gmail.com> Co-authored-by: Ikalco <73481042+ikalco@users.noreply.github.com> Co-authored-by: diniamo <diniamo53@gmail.com>
* internal: Replace monitor rule when disabling head. (#6136)Alessio Molinari2024-05-231-1/+8
| | | Closes #5978
* core: chase hyprwayland-scannerVaxry2024-05-071-2/+2
|
* internal: new shared_ptr and weak_ptr implementation (#5883)Vaxry2024-05-051-9/+8
| | | | | | | | | | | 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.
* output-management: move to new implVaxry2024-05-031-0/+597