mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-25 23:05:58 +01:00
input: log cursor image requests
This commit is contained in:
parent
9c3f3b0018
commit
b7ab15dc80
1 changed files with 4 additions and 0 deletions
|
@ -486,6 +486,8 @@ void CInputManager::processMouseRequest(wlr_seat_pointer_request_set_cursor_even
|
||||||
if (!cursorImageUnlocked())
|
if (!cursorImageUnlocked())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Debug::log(LOG, "cursorImage request: surface {:x}", (uintptr_t)e->surface);
|
||||||
|
|
||||||
if (e->seat_client == g_pCompositor->m_sSeat.seat->pointer_state.focused_client) {
|
if (e->seat_client == g_pCompositor->m_sSeat.seat->pointer_state.focused_client) {
|
||||||
|
|
||||||
if (e->surface != m_sCursorSurfaceInfo.wlSurface.wlr()) {
|
if (e->surface != m_sCursorSurfaceInfo.wlSurface.wlr()) {
|
||||||
|
@ -514,6 +516,8 @@ void CInputManager::processMouseRequest(wlr_cursor_shape_manager_v1_request_set_
|
||||||
if (!cursorImageUnlocked())
|
if (!cursorImageUnlocked())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Debug::log(LOG, "cursorImage request: shape {}", (uint32_t)e->shape);
|
||||||
|
|
||||||
if (e->seat_client == g_pCompositor->m_sSeat.seat->pointer_state.focused_client) {
|
if (e->seat_client == g_pCompositor->m_sSeat.seat->pointer_state.focused_client) {
|
||||||
m_sCursorSurfaceInfo.wlSurface.unassign();
|
m_sCursorSurfaceInfo.wlSurface.unassign();
|
||||||
m_sCursorSurfaceInfo.vHotspot = {};
|
m_sCursorSurfaceInfo.vHotspot = {};
|
||||||
|
|
Loading…
Reference in a new issue