summaryrefslogtreecommitdiff
path: root/src/events/Misc.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-03-09 21:54:33 +0000
committerVaxry <vaxry@vaxry.net>2024-03-09 21:54:33 +0000
commit739c5bc98c6037101e5744827dd66e696a4e9ecd (patch)
tree744f2df98151a137af6d26b073d07c47f6ecfb1c /src/events/Misc.cpp
parent26cd1bf949d0460b754fe3b1ae7f06bd4b2535ee (diff)
cursormgr: fix invalid access to hyprcursor in xwayland init
fixes #5048
Diffstat (limited to 'src/events/Misc.cpp')
-rw-r--r--src/events/Misc.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/events/Misc.cpp b/src/events/Misc.cpp
index d7e3a849..8d0a9710 100644
--- a/src/events/Misc.cpp
+++ b/src/events/Misc.cpp
@@ -70,11 +70,7 @@ void Events::listener_readyXWayland(wl_listener* listener, void* data) {
wlr_xwayland_set_seat(g_pXWaylandManager->m_sWLRXWayland, g_pCompositor->m_sSeat.seat);
- const auto CURSOR = g_pCursorManager->dataFor("left_ptr");
- if (CURSOR.surface) {
- wlr_xwayland_set_cursor(g_pXWaylandManager->m_sWLRXWayland, cairo_image_surface_get_data(CURSOR.surface), cairo_image_surface_get_stride(CURSOR.surface), CURSOR.size,
- CURSOR.size, CURSOR.hotspotX, CURSOR.hotspotY);
- }
+ g_pCursorManager->setXWaylandCursor(g_pXWaylandManager->m_sWLRXWayland);
const auto ROOT = xcb_setup_roots_iterator(xcb_get_setup(XCBCONNECTION)).data->root;
auto cookie = xcb_get_property(XCBCONNECTION, 0, ROOT, HYPRATOMS["_NET_SUPPORTING_WM_CHECK"], XCB_ATOM_ANY, 0, 2048);