mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-12-25 08:44:45 +03:00
fix pointer focus coords in focusWindow
This commit is contained in:
parent
d1e5f87607
commit
e4d05c90ce
@ -380,8 +380,9 @@ void CCompositor::focusWindow(CWindow* pWindow, wlr_surface* pSurface) {
|
||||
|
||||
g_pXWaylandManager->activateWindow(pWindow, true);
|
||||
|
||||
// do pointer focus too
|
||||
wlr_seat_pointer_notify_enter(m_sSeat.seat, PWINDOWSURFACE, 0, 0);
|
||||
// do pointer focus too
|
||||
const auto POINTERLOCAL = g_pInputManager->getMouseCoordsInternal() - pWindow->m_vRealPosition;
|
||||
wlr_seat_pointer_notify_enter(m_sSeat.seat, PWINDOWSURFACE, POINTERLOCAL.x, POINTERLOCAL.y);
|
||||
|
||||
m_pLastWindow = pWindow;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user