summaryrefslogtreecommitdiff
path: root/src/managers/XCursorManager.hpp
Commit message (Collapse)AuthorAgeFilesLines
* managers: refactor class member vars (#10242)davc0n2025-05-021-6/+6
|
* time: move to stl's clocks and move timerVaxry2025-04-161-5/+1
|
* core,hyprctl: clang, clang-tidy, typo fixes and dtors changes (#9233)Honkazel2025-01-301-4/+4
| | | | | | | * declare dtor once + DMABBUF typo fix * dup include + clang moment * linux-dmabuf: last minute nit change
* xcursors: store themes in a std:set to order it (#8474)Tom Englund2024-11-141-12/+12
| | | | | | | 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.
* xcursormgr: dont apply scale on gsettings (#7316)Tom Englund2024-08-161-4/+5
| | | | | 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.
* cursormgr: fix cursor gsettings on session change (#7295)Ikalco2024-08-131-2/+2
|
* cursormgr: add a new setting to sync gsettings (#7253)Tom Englund2024-08-091-0/+1
| | | | | | 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: implement inheriting themes for xcursor (#7197)Tom Englund2024-08-071-10/+11
| | | | | | | | | | | | | | | | | | | * 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/+46
* 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.