cursormgr: fix cursor gsettings on session change (#7295)

This commit is contained in:
Ikalco
2024-08-13 12:27:00 -05:00
committed by GitHub
parent 77cf651825
commit 39df1f4dbf
5 changed files with 11 additions and 4 deletions

View File

@@ -31,6 +31,7 @@ class CXCursorManager {
void loadTheme(const std::string& name, int size);
SP<SXCursors> getShape(std::string const& shape, int size);
void syncGsettings();
private:
SP<SXCursors> createCursor(std::string const& shape, XcursorImages* xImages);
@@ -38,11 +39,10 @@ class CXCursorManager {
std::string getLegacyShapeName(std::string const& shape);
std::vector<SP<SXCursors>> loadStandardCursors(std::string const& name, int size);
std::vector<SP<SXCursors>> loadAllFromDir(std::string const& path, int size);
void syncGsettings();
int lastLoadSize = 0;
std::string themeName = "";
SP<SXCursors> defaultCursor;
SP<SXCursors> hyprCursor;
std::vector<SP<SXCursors>> cursors;
};
};