summaryrefslogtreecommitdiff
path: root/src/managers/PointerManager.cpp
Commit message (Collapse)AuthorAgeFilesLines
* pointer: use preMonitorCommit for resetting render stateVaxry2024-07-301-1/+1
| | | | in DS preRender is not called
* core/surface: fixup a few pointer handling edge casesVaxry2024-07-291-0/+4
|
* virtualptr: map to entire screen if no output is providedVaxry2024-07-291-2/+18
| | | | fixes #6749
* virtualptr: allow binding to outputVaxry2024-07-291-0/+10
|
* pointer/hw: rollback the swapchain on multiple renders without a commitVaxry2024-07-221-4/+17
| | | | fixes the hack
* pointer/hw: extend cursor swapchain to 3Vaxry2024-07-221-1/+4
| | | | otherwise on some commits we draw twice and we draw over the front buffer
* virtual-pointer: fixup virtual pointer warp eventsVaxry2024-07-221-1/+1
| | | | fixes #6976
* Core: Move to aquamarine (#6608)Vaxry2024-07-211-193/+90
| | | | | | | | | | | | | | 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>
* style: fix clang-formatVaxry2024-07-131-2/+1
|
* pointer: update geometry after unplug eventsVaxry2024-07-051-2/+3
| | | | | | fixes #6700 fixes #6740
* pointer: change min cursor padding to 0 (#6027)drendog2024-07-021-1/+1
| | | | | | | | | | | | | * fix: change min cursor padding to 0 * chore: set default hotspot padding to 0 * fix: adjusting clamp after getting closest point to fix getting off limit point * fix: deal with floating point to clamp to prev value * refactor: max coords to vector * fix: remove box closestPoint adjustment due its fix on hyprutils
* pointer: round position when rendering software cursorsVaxry2024-06-251-0/+2
| | | | otherwise the image gets resampled and gets blurry
* pointer: use software rendering when monitor is mirrored (#6587)Lucas Reis2024-06-191-0/+18
| | | | | | | * 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/+1
| | | | | | 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-1/+1
| | | | | | | | | | | | | | | * 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>
* renderer: properly software lock cursors with zoom_factor (#6434)Ikalco2024-06-121-0/+14
|
* wayland/core: move to new impl (#6268)Vaxry2024-06-081-33/+33
| | | | | * wayland/core/dmabuf: move to new impl it's the final countdown
* pointer: Include monitor scaling in HW hotspot calculation (#6283)obivan2024-05-311-1/+1
|
* pointer: remove dividing hotspot by scalevaxerski2024-05-251-1/+1
| | | | fixes #6117
* pointer: add back nvidia hardware cursor quirks (#6220)thejch2024-05-241-1/+11
|
* pointermgr: ensure compositor exist on destroy (#6216)Tom Englund2024-05-231-1/+5
| | | | | | on exit of hyprland the CMonitor destroy signal comes after the compositor has been destructed, causing a heap use after free. add if check to ensure compositor exist and isnt shutting down when its triggered.
* tablet: fix mapping when mapped region is specified (#6206)Ming-Chuan2024-05-231-2/+5
| | | | | | | | | When `region_size` is set in the config (non-empty `boundBox`), cursor is mapped to wrong coordinate because `CBox::translate` mutates `TAB->boundBox`, making all subsequent coordinate calculations wrong. This also fixes the edge case where user sets `region_position` but not `region_size`.
* pointer: damage in software mode on cursor image changesVaxry2024-05-171-0/+11
| | | | fixes #6126
* pointer: don't update hw cursors on disabled displaysVaxry2024-05-161-0/+10
|
* wl-data-device: move to hyprland implVaxry2024-05-141-0/+4
|
* wl_seat: move to hyprland implVaxry2024-05-141-2/+3
|
* cursor: minor fixes for unhiding surfacesVaxry2024-05-141-1/+1
| | | | | | the surface equality check is done in CPointerManager, the one in renderer can be wrong fixes #5975
* pointermgr: reset entered outputs when resetting surfaceVaxry2024-05-091-0/+7
| | | | fixes #5970
* pointer: don't calculate hw hotspot for missing hw cursorsVaxry2024-05-091-0/+3
| | | | ref #5964
* Tablet: move to new implVaxry2024-05-091-11/+79
| | | | Ring and strip are not implemented. Will I implement this? God fucking knows. Nobody seems to have that anyways.
* cursor: move to a hyprland implVaxry2024-05-091-0/+864
This moves wlr_cursor to a completely new impl mostly under CPointerManager Also adds beginSimple to OpenGL for simple render passes (e.g. cursor)