aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/events/Devices.cpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-06-27 13:42:20 +0200
committervaxerski <[email protected]>2022-06-27 13:42:20 +0200
commit781526dac58619fa313ca9bf86bfd712c01cb68f (patch)
tree93139652439c65fc49b66437292dacb4c2efb258 /src/events/Devices.cpp
parentb9a5fc0d2f76718833b49ec01234496f5002a677 (diff)
downloadHyprland-781526dac58619fa313ca9bf86bfd712c01cb68f.tar.gz
Hyprland-781526dac58619fa313ca9bf86bfd712c01cb68f.zip
added hyprctl kill
Diffstat (limited to 'src/events/Devices.cpp')
-rw-r--r--src/events/Devices.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/events/Devices.cpp b/src/events/Devices.cpp
index df4501cf..adbe268e 100644
--- a/src/events/Devices.cpp
+++ b/src/events/Devices.cpp
@@ -57,17 +57,7 @@ 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 (!g_pHyprRenderer->shouldRenderCursor())
- return;
-
- if (!EVENT->surface) {
- g_pHyprRenderer->m_bWindowRequestedCursorHide = true;
- } else {
- g_pHyprRenderer->m_bWindowRequestedCursorHide = false;
- }
-
- 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);
+ g_pInputManager->processMouseRequest(EVENT);
}
void Events::listener_newInput(wl_listener* listener, void* data) {