summaryrefslogtreecommitdiff
path: root/src/managers/XCursorManager.cpp
Commit message (Collapse)AuthorAgeFilesLines
* debug: move to hyprutils' logger (#12673)Vaxry2025-12-181-19/+20
|
* protocols/cursor-shape: impl version 2 (#12270)Honkazel2025-11-301-0/+4
|
* refactor: Use new hyprutils casts (#11377)Kamikadze2025-08-141-6/+6
|
* ci: correct tar command for xz compression & fix typos (#11213)xqso2025-07-251-2/+2
|
* refactor: use std::ranges whenever possible (#10584)Kamikadze2025-05-301-4/+4
|
* managers: refactor class member vars (#10242)davc0n2025-05-021-36/+36
|
* xcursormgr: include <variant>Vaxry2025-04-161-0/+1
| | | | ref #10093
* time: move to stl's clocks and move timerVaxry2025-04-161-2/+9
|
* xcursor: move config check to sync gsettings (#9473)Tom Englund2025-02-231-3/+5
| | | | | move the check down into the function itself, 39df1f4 began syncing on session change, but isnt checking for the setting itself, so instead of duplicating checks all over. do it here.
* core: avoid .at() and use [] operator (#9347)Tom Englund2025-02-061-1/+1
| | | avoid .at() where it makes sense and use [] operator in loops.
* core: move all shared_ptrs from the STL to hyprutils (#9143)Vaxry2025-01-231-0/+1
|
* 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.
* xcursors: store themes in a std:set to order it (#8474)Tom Englund2024-11-141-4/+4
| | | | | | | using a unordered_set means its store based on a hash_value meaning currently it can end up loading inherited themes before the actual theme itself depending on the hash of the theme name used, reason for using set at all over vector is to keep unique members and not foreverever looping broken inherit themeing.
* xcursor: don't crash on broken permissions in X themesVaxry2024-10-121-3/+5
| | | | ref #8079
* Fix missing include needed by clangSerenity Braesch2024-08-261-0/+1
|
* misc: constify the remaining for loops (#7534)Tom Englund2024-08-261-1/+1
| | | now we roll loops at blazing constified speed.
* xcursormgr: dont apply scale on gsettings (#7316)Tom Englund2024-08-161-8/+10
| | | | | gtk scales the cursor size itself since its CSD so if we scale the size its gonna get double scaled. incorporate the scale into xcursormanager to keep track of it.
* xcursor: handle file errors when loading xcursor themes (#7326)Ikalco2024-08-151-1/+4
|
* cursormgr: fix cursor gsettings on session change (#7295)Ikalco2024-08-131-0/+1
|
* cursormgr: add a new setting to sync gsettings (#7253)Tom Englund2024-08-091-0/+59
| | | | | | cursor:sync_gsettings_theme is set to default true and if enabled it will now sync xcursor theme loading with gsettings if it can, meaning CSD clients will now also change to the appropiate theme upon start and hyprctl setcursor THEME SIZE .
* cursormgr: avoid scanning ill formed inherit (#7211)Tom Englund2024-08-071-9/+42
| | | | | | | avoid adding ill formed Inherit lines to inherit vector and later scanning them, it wont change anything in practice but makes the inherit theme parsing more in line with what its supposed todo. also check for return values of the various string functions so we dont end up erasing the wrong thing.
* cursormgr: implement inheriting themes for xcursor (#7197)Tom Englund2024-08-071-13/+77
| | | | | | | | | | | | | | | | | | | * cursormgr: reduce duplicated code add a few functions such as setCursorBuffer and setAnimationTimer to reduce duplicated code and also avoid future mishaps of forgetting to clear buffer or disarm timer. and generally reduce spaghetti even tho pasta can be delicious. * xcursormgr: implent inherited themes implent index.theme parsing and inherited themes. * cursormgr: ensure a fallback xcursor exist ensure a xcursor fallback exist otherwise it wont load the proper theme if we at launch have hyprcursor enabled and then set it to false in config and reload. also use the env var when using hyprctl setcursor incase its empty.
* cursor: Better xcursor implementation (#7178)Tom Englund2024-08-051-0/+447
* xcursor: bootleg xcursors into its own manager implent XCursorManager and load themes based on librarypath and its dir, now we catch all supplied theme files. and also implent animated cursors. also refactor a bit of spaghetti regarding xcursors in CursorManager. * hyprcursor: fix buffer leak animated cursors are creating a new buffer for each image, ensure we drop the buffers so it continously doesnt build up in infinity. * cursormgr: use eventloopmgr for animation use EvenloopManager for timers instead of adding it directly to m_sWLEventLoop and using its related wl_* functions.