cursormgr: fix invalid access to hyprcursor in xwayland init

fixes #5048
This commit is contained in:
Vaxry
2024-03-09 21:54:33 +00:00
parent 26cd1bf949
commit 739c5bc98c
3 changed files with 19 additions and 5 deletions

View File

@@ -8,6 +8,7 @@
struct wlr_buffer;
struct wlr_xcursor_manager;
struct wlr_xwayland;
class CCursorManager {
public:
@@ -21,6 +22,7 @@ class CCursorManager {
void changeTheme(const std::string& name, const int size);
void updateTheme();
SCursorImageData dataFor(const std::string& name); // for xwayland
void setXWaylandCursor(wlr_xwayland* xwayland);
void tickAnimatedCursor();