diff options
| author | Tom Englund <tomenglund26@gmail.com> | 2024-08-16 18:00:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-16 17:00:59 +0100 |
| commit | c5feee1e357f3c3c59ebe406630601c627807963 (patch) | |
| tree | 70b2a70cb3df76787010a562ce2be6e396a69e8c /src/managers/XCursorManager.hpp | |
| parent | 1840a907a8c6b1f59cfa6738a8f46b320e8df8b1 (diff) | |
xcursormgr: dont apply scale on gsettings (#7316)
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.
Diffstat (limited to 'src/managers/XCursorManager.hpp')
| -rw-r--r-- | src/managers/XCursorManager.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/managers/XCursorManager.hpp b/src/managers/XCursorManager.hpp index 48fda5dd..1f3c24db 100644 --- a/src/managers/XCursorManager.hpp +++ b/src/managers/XCursorManager.hpp @@ -29,8 +29,8 @@ class CXCursorManager { CXCursorManager(); ~CXCursorManager() = default; - void loadTheme(const std::string& name, int size); - SP<SXCursors> getShape(std::string const& shape, int size); + void loadTheme(const std::string& name, int size, float scale); + SP<SXCursors> getShape(std::string const& shape, int size, float scale); void syncGsettings(); private: @@ -40,8 +40,9 @@ class CXCursorManager { std::vector<SP<SXCursors>> loadStandardCursors(std::string const& name, int size); std::vector<SP<SXCursors>> loadAllFromDir(std::string const& path, int size); - int lastLoadSize = 0; - std::string themeName = ""; + int lastLoadSize = 0; + float lastLoadScale = 0; + std::string themeName = ""; SP<SXCursors> defaultCursor; SP<SXCursors> hyprCursor; std::vector<SP<SXCursors>> cursors; |
