summaryrefslogtreecommitdiff
path: root/src/helpers/Monitor.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* core: refactor/improve monitor mode selection (#8804)Ikalco2024-12-281-4/+379
|
* monitor: bring back old description behaviorvaxerski2024-12-231-1/+1
| | | | this makes description match the beginning again. Fixes #8756
* internal: Make static analysis more happy (#8767)Ikalco2024-12-191-1/+1
| | | | | | | | | * make functions used in 1 file static * fix invalid substr param -1 * give default initializer to borderGradier * move RASSERT from printf to std::print
* core: drop using deques in favor of vectorsVaxry2024-12-161-2/+2
| | | | No point in most of these.
* core: Add clang-tidy (#8664)Vaxry2024-12-071-2/+2
| | | | | This adds a .clang-tidy file for us. It's not a strict requirement to be compliant, but I tuned it to be alright.
* core: workspace-related function cleanup / refactorVaxry2024-11-221-3/+3
| | | | CCompositor is massive, and has a lot of functions that could be better optimized if in CWorkspace
* monitor: fix default focus when switching to a fs workspaceVaxry2024-11-221-1/+1
|
* hooks: add pre connected/disconnected monitor events (#8503)Alessio Molinari2024-11-171-0/+2
|
* monitors: fix vrr breaking monitor disconnect (#8314)Ikalco2024-11-011-0/+1
|
* core: move internal structures to monitor pointers (#8266)Vaxry2024-10-271-11/+9
|
* internal: cleanup CMonitor usage and fix a few ref hogsVaxry2024-10-261-4/+4
| | | | ref #8221
* monitor: avoid crash on released buffer in surfVaxry2024-10-191-1/+1
|
* internal: Move CMonitor to SP (#8178)Vaxry2024-10-191-57/+57
| | | | | * move monitors to sp * XD
* monitor: modernize/refactor last legacy-handled eventsVaxry2024-10-191-2/+72
|
* input: Fix VRR for constrained cursors (#6877)UjinT342024-10-121-1/+7
|
* protocols: Add support for hyprland-ctm-control-v1 (#8023)Vaxry2024-10-081-0/+6
| | | | | | | | | | | * initial ctm support * flake.lock: update * Meson: bump required versions and add ctm proto --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* monitor: arrange monitors on connect and disconnectVaxry2024-10-051-0/+2
|
* monitor: use a scope guard for disconnect eventsVaxry2024-10-051-3/+6
|
* monitor: cleanup and modernize scheduleDoneVaxry2024-10-051-10/+13
|
* wlr-output-configuration: Improve output configuration (#7571)Vaxry2024-09-261-2/+2
|
* Internal: move to Mat3x3 from hyprutils (#7902)Vaxry2024-09-251-6/+3
| | | | | | | | | * Meson: require hyprutils >= 0.2.3 * flake.lock: update hyprutils --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* internal: move to hyprutils' scopeguardVaxry2024-09-211-1/+2
| | | | bumps hyprutils dep to 0.2.2
* internal: Delay monitor events/hooks (#7797)Leiser Fernández Gallo2024-09-151-7/+7
| | | | | * Delay monitor messages * Format
* renderer: minor direct scanout fixes (#7594)Ikalco2024-08-311-0/+15
|
* presentation-feedback: minor fixupsVaxry2024-08-301-2/+2
|
* window/xwayland: minor property cleanupVaxry2024-08-301-1/+1
| | | | fixes #6921
* renderer: ensure buffer format on commit (#7556)Ikalco2024-08-281-4/+7
|
* misc: constify the remaining for loops (#7534)Tom Englund2024-08-261-11/+11
| | | now we roll loops at blazing constified speed.
* core: make most for loops use const references (#7527)Tom Englund2024-08-261-2/+2
| | | | why not let the compiler optimise things for us at hyprspeeds when we can.
* monitor: avoid dangling references to old monitors being undestroyedvaxerski2024-08-191-4/+17
| | | | ref #7414
* render: fixup format mismatch after leaving DSvaxerski2024-08-171-1/+1
| | | | fixes #7373
* internal: introduce new types to avoid unsigned int rollover and signed int ↵Tom Englund2024-08-081-7/+7
| | | | | | | | | | | | | | | | | | | | 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
* renderer: Explicit sync fixes (#7151)Vaxry2024-08-061-4/+60
| | | | | Enables explicit sync by default for most platforms `misc:no_direct_scanout` -> `render:direct_scanout`
* core/surface/buffer: Buffer lock/release fixes (#7110)Vaxry2024-07-311-4/+3
|
* internal: refactor fullscreen states (#7104)MightyPlaza2024-07-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refactor fullscreen modified: src/Compositor.cpp modified: src/Compositor.hpp modified: src/config/ConfigManager.cpp modified: src/config/ConfigManager.hpp modified: src/debug/HyprCtl.cpp modified: src/desktop/LayerSurface.cpp modified: src/desktop/Window.cpp modified: src/desktop/Window.hpp modified: src/desktop/Workspace.cpp modified: src/desktop/Workspace.hpp modified: src/events/Windows.cpp modified: src/helpers/Monitor.cpp modified: src/layout/DwindleLayout.cpp modified: src/layout/DwindleLayout.hpp modified: src/layout/IHyprLayout.cpp modified: src/layout/IHyprLayout.hpp modified: src/layout/MasterLayout.cpp modified: src/layout/MasterLayout.hpp modified: src/managers/KeybindManager.cpp modified: src/managers/KeybindManager.hpp modified: src/managers/input/IdleInhibitor.cpp modified: src/managers/input/InputManager.cpp modified: src/managers/input/Swipe.cpp modified: src/protocols/ForeignToplevelWlr.cpp modified: src/render/Renderer.cpp modified: src/render/decorations/CHyprGroupBarDecoration.cpp * clean up modified: src/config/ConfigManager.cpp modified: src/debug/HyprCtl.cpp modified: src/desktop/Window.hpp modified: src/desktop/Workspace.cpp modified: src/events/Windows.cpp modified: src/managers/KeybindManager.cpp modified: src/managers/input/Swipe.cpp * fix mapWindow fullscreen modified: src/events/Windows.cpp * fix typo modified: src/desktop/Workspace.cpp * add fullscreenstate modified: src/config/ConfigManager.cpp modified: src/events/Windows.cpp * change syncFullscreen to lower modified: src/config/ConfigManager.hpp * initialize fs state modified: src/desktop/Window.hpp
* output: minor tearing fixesVaxry2024-07-301-1/+2
|
* output: submit damage to kmsVaxry2024-07-301-0/+2
|
* pointer: use preMonitorCommit for resetting render stateVaxry2024-07-301-0/+2
| | | | in DS preRender is not called
* debug: get rid of useless 1s in logs (#6969)Ikalco2024-07-221-1/+1
| | | | | * get rid of 1s in logs lol * replace WLR with AQ in logs
* Core: Move to aquamarine (#6608)Vaxry2024-07-211-108/+185
| | | | | | | | | | | | | | 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>
* workspaces: don't try to reopen special workspaces (#6802)Virt2024-07-071-0/+3
|
* core: add ability to select previous workspace per monitor (#6598)Alexander2024-06-221-10/+15
| | | Co-authored-by: Крылов Александр <aleksandr.krylov@hyperus.team>
* damageRing: move to hyprland implVaxry2024-06-191-11/+7
| | | | A small wlroots utility we were still using.
* pointer: use software rendering when monitor is mirrored (#6587)Lucas Reis2024-06-191-0/+10
| | | | | | | * pointer_manager: add lock/unlock software wrappers that receive the raw pointer * monitor: lock/unlock software pointer rendering when adding/removing mirrored screens * use relative path in includes
* core: Move to hyprutils for MathVaxry2024-06-191-1/+3
| | | | | | Moves CRegion, CBox and Vector2D over to hyprutils. Requires hyprutils>=0.1.4
* vrr: add option to fix mouse breaking vrr (#6483)UjinT342024-06-141-0/+18
| | | | | | | | | | | | | | | * option to fix mouse breaking vrr * skip damage on mouse move * remove this-> & cleanup * add cursor:min_refresh_rate to avoid cursor freezing * run clang-format --------- Co-authored-by: UjinT34 <ujin@uvpn.ru>
* core: move to hyprutils for utils (#6385)Vaxry2024-06-111-2/+3
| | | | | | | | | | | | | * core: move to hyprutils for utils Nix: add hyprutils dep * Meson: add hyprutils dep * flake.lock: update --------- Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
* output: remove wl_output globals for mirrored displaysVaxry2024-06-101-0/+5
| | | | ref #6387
* wayland/core: move to new impl (#6268)Vaxry2024-06-081-11/+1
| | | | | * wayland/core/dmabuf: move to new impl it's the final countdown
* presentation-time: move to new implVaxry2024-05-101-7/+18
|