summaryrefslogtreecommitdiff
path: root/src/events/Devices.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-22 18:29:13 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-22 18:29:13 +0100
commitaa64af95fedaadc97dce02d4a37d6bad05961c86 (patch)
treec2c7fd4e72651135f574722c1e1dc1b9c7de0a20 /src/events/Devices.cpp
parentdb4b4ec0d3a09b9194b102509b432b5d92b798c6 (diff)
handle inhibit
Diffstat (limited to 'src/events/Devices.cpp')
-rw-r--r--src/events/Devices.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/events/Devices.cpp b/src/events/Devices.cpp
index b9c54f57..846b9070 100644
--- a/src/events/Devices.cpp
+++ b/src/events/Devices.cpp
@@ -33,7 +33,7 @@ void Events::listener_keyboardMod(wl_listener* listener, void* data) {
}
void Events::listener_mouseFrame(wl_listener* listener, void* data) {
- wlr_seat_pointer_notify_frame(g_pCompositor->m_sWLRSeat);
+ wlr_seat_pointer_notify_frame(g_pCompositor->m_sSeat.seat);
}
void Events::listener_mouseMove(wl_listener* listener, void* data) {
@@ -51,13 +51,13 @@ void Events::listener_mouseButton(wl_listener* listener, void* data) {
void Events::listener_mouseAxis(wl_listener* listener, void* data) {
const auto E = (wlr_event_pointer_axis*)data;
- wlr_seat_pointer_notify_axis(g_pCompositor->m_sWLRSeat, E->time_msec, E->orientation, E->delta, E->delta_discrete, E->source);
+ wlr_seat_pointer_notify_axis(g_pCompositor->m_sSeat.seat, E->time_msec, E->orientation, E->delta, E->delta_discrete, E->source);
}
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_sWLRSeat->pointer_state.focused_client)
+ 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);
}
@@ -79,5 +79,5 @@ void Events::listener_newInput(wl_listener* listener, void* data) {
uint32_t capabilities = WL_SEAT_CAPABILITY_POINTER | WL_SEAT_CAPABILITY_KEYBOARD;
- wlr_seat_set_capabilities(g_pCompositor->m_sWLRSeat, capabilities);
+ wlr_seat_set_capabilities(g_pCompositor->m_sSeat.seat, capabilities);
} \ No newline at end of file