aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/macros.hpp
AgeCommit message (Collapse)Author
2024-10-30internal: check size limit in layouts (#8298)MightyPlaza
modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/events/Windows.cpp modified: src/helpers/MiscFunctions.cpp modified: src/helpers/MiscFunctions.hpp modified: src/layout/DwindleLayout.cpp modified: src/layout/IHyprLayout.cpp modified: src/layout/MasterLayout.cpp modified: src/macros.hpp
2024-08-08internal: introduce new types to avoid unsigned int rollover and signed int ↵Tom Englund
overflow (#7216) * framebuffer: avoid gluint overflow GLuint was being initialized to -1 and rolling over to unsigned int max, its defined behaviour but very unnecessery. add a bool and use it for checking if allocated or not. * opengl: avoid gluint rollover -1 rolls over to unsigned int max, use 0xFF instead. * core: big uint64_t to int type conversion there were a few uint64_t to int implicit conversions overflowing int and causing UB, make all monitor/workspaces/windows use the new typedefs. also fix the various related 64 to 32 implicit conversions going around found with -Wshorten-64-to-32
2024-07-21Core: Move to aquamarine (#6608)Vaxry
Moves Hyprland from wlroots to aquamarine for the backend. --------- Signed-off-by: Vaxry <[email protected]> Co-authored-by: Mihai Fufezan <[email protected]> Co-authored-by: Jan Beich <[email protected]> Co-authored-by: vaxerski <[email protected]> Co-authored-by: UjinT34 <[email protected]> Co-authored-by: Tom Englund <[email protected]> Co-authored-by: Ikalco <[email protected]> Co-authored-by: diniamo <[email protected]>
2024-07-13style: fix clang-formatVaxry
2024-06-22core: add ability to select previous workspace per monitor (#6598)Alexander
Co-authored-by: Крылов Александр <[email protected]>
2024-06-19core: Move to hyprutils for MathVaxry
Moves CRegion, CBox and Vector2D over to hyprutils. Requires hyprutils>=0.1.4
2024-06-11core: move to hyprutils for utils (#6385)Vaxry
* core: move to hyprutils for utils Nix: add hyprutils dep * Meson: add hyprutils dep * flake.lock: update --------- Co-authored-by: Mihai Fufezan <[email protected]>
2024-06-08wayland/core: move to new impl (#6268)Vaxry
* wayland/core/dmabuf: move to new impl it's the final countdown
2024-05-11compositor: fix getMonitorFromVector getting wrong monitor (#6010)Sungyoon Cho
2024-05-05internal: new shared_ptr and weak_ptr implementation (#5883)Vaxry
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.
2024-04-27internal: Window storage rework - part 1 (#5762)Vaxry
* Window storage rework - part 1 * format * remove useless include * fix pch * format * fix crash in dwindle * fix vram leak * prefer .expired() for bool checks
2024-04-11macros: fix no pch warningVaxry
2024-03-03config: improve config value infrastructureVaxry
2023-12-06style/ci: apply clang-format and verify it in ci (#4039)François Conzelmann
* style: apply clang-format * ci: add new clang-format job to CI
2023-11-12internal: replace INT_MAX with WORKSPACE_INVALIDVaxry
2023-10-10internal: better versioning (#3543)Vaxry
* better versioning * meson: better versioning * nix: better versioning --------- Co-authored-by: Mihai Fufezan <[email protected]>
2023-09-20logging: implement std::formatter for some types (#3380)memchr
2023-09-20logging/format: use std::format_string to catch formatting string errors at ↵memchr
compile time (#3377) * fix(log): use constexpr format string * deprecate getFormat
2023-09-12varlist: move to a separate header, add joinvaxerski
2023-09-06internal: Formatter rework (#3186)Vaxry
2023-08-31refactor: raise SIGABRT instead of write to null address (#3124)memchr
2023-08-07macros: fix missing includevaxerski
2023-08-07internal: cleanup headers in helpers/vaxerski