1
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2025-08-02 21:21:55 -07:00

desktop: prevent layers from dismissing their own seat grabs on map ()

This commit is contained in:
outfoxxed
2025-05-15 02:16:03 -07:00
committed by GitHub
parent 5ceb0ec15d
commit dfb841c303

@@ -167,7 +167,9 @@ void CLayerSurface::onMap() {
if (GRABSFOCUS) {
// TODO: use the new superb really very cool grab
g_pSeatManager->setGrab(nullptr);
if (g_pSeatManager->m_seatGrab && !g_pSeatManager->m_seatGrab->accepts(m_surface->resource()))
g_pSeatManager->setGrab(nullptr);
g_pInputManager->releaseAllMouseButtons();
g_pCompositor->focusSurface(m_surface->resource());