summaryrefslogtreecommitdiff
path: root/src/events/Devices.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-23 22:01:59 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-23 22:01:59 +0100
commitbcf7ee6dc225c00b2aea9891ea42aeb18e5b0cc8 (patch)
tree62989a7b7c5ba1c1a289cd38babe71acb76521d1 /src/events/Devices.cpp
parent1923b0d1709f3d255912df5cfa9e0b1c6607842e (diff)
Added basic animations for windows
Diffstat (limited to 'src/events/Devices.cpp')
-rw-r--r--src/events/Devices.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/events/Devices.cpp b/src/events/Devices.cpp
index 846b9070..ab259f43 100644
--- a/src/events/Devices.cpp
+++ b/src/events/Devices.cpp
@@ -57,8 +57,9 @@ void Events::listener_mouseAxis(wl_listener* listener, void* data) {
void Events::listener_requestMouse(wl_listener* listener, void* data) {
const auto EVENT = (wlr_seat_pointer_request_set_cursor_event*)data;
- if (EVENT->seat_client == g_pCompositor->m_sSeat.seat->pointer_state.focused_client)
- wlr_cursor_set_surface(g_pCompositor->m_sWLRCursor, EVENT->surface, EVENT->hotspot_x, EVENT->hotspot_y);
+ // TODO: crashes sometimes
+ //if (EVENT->seat_client == g_pCompositor->m_sSeat.seat->pointer_state.focused_client)
+ // wlr_cursor_set_surface(g_pCompositor->m_sWLRCursor, EVENT->surface, EVENT->hotspot_x, EVENT->hotspot_y);
}
void Events::listener_newInput(wl_listener* listener, void* data) {