mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-05-19 00:20:23 -07:00
desktop: prevent layers from dismissing their own seat grabs on map (#10417)
This commit is contained in:
parent
5ceb0ec15d
commit
dfb841c303
@ -167,7 +167,9 @@ void CLayerSurface::onMap() {
|
|||||||
|
|
||||||
if (GRABSFOCUS) {
|
if (GRABSFOCUS) {
|
||||||
// TODO: use the new superb really very cool grab
|
// 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_pInputManager->releaseAllMouseButtons();
|
||||||
g_pCompositor->focusSurface(m_surface->resource());
|
g_pCompositor->focusSurface(m_surface->resource());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user