mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-05-13 07:10:35 +01:00
parent
208f4c48db
commit
9868b18378
2 changed files with 3 additions and 2 deletions
|
@ -199,7 +199,7 @@ void CLayerSurface::onUnmap() {
|
||||||
g_pEventManager->postEvent(SHyprIPCEvent{"closelayer", m_layerSurface->layerNamespace});
|
g_pEventManager->postEvent(SHyprIPCEvent{"closelayer", m_layerSurface->layerNamespace});
|
||||||
EMIT_HOOK_EVENT("closeLayer", m_self.lock());
|
EMIT_HOOK_EVENT("closeLayer", m_self.lock());
|
||||||
|
|
||||||
std::erase_if(g_pInputManager->m_dExclusiveLSes, [this](const auto& other) { return !other.lock() || other.lock() == m_self.lock(); });
|
std::erase_if(g_pInputManager->m_dExclusiveLSes, [this](const auto& other) { return !other || other == m_self; });
|
||||||
|
|
||||||
if (!m_monitor || g_pCompositor->m_unsafeState) {
|
if (!m_monitor || g_pCompositor->m_unsafeState) {
|
||||||
Debug::log(WARN, "Layersurface unmapping on invalid monitor (removed?) ignoring.");
|
Debug::log(WARN, "Layersurface unmapping on invalid monitor (removed?) ignoring.");
|
||||||
|
|
|
@ -289,7 +289,8 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus, bool mouse) {
|
||||||
|
|
||||||
// if we are holding a pointer button,
|
// if we are holding a pointer button,
|
||||||
// and we're not dnd-ing, don't refocus. Keep focus on last surface.
|
// and we're not dnd-ing, don't refocus. Keep focus on last surface.
|
||||||
if (!PROTO::data->dndActive() && !m_lCurrentlyHeldButtons.empty() && g_pCompositor->m_lastFocus && g_pSeatManager->state.pointerFocus && !m_bHardInput) {
|
if (!PROTO::data->dndActive() && !m_lCurrentlyHeldButtons.empty() && g_pCompositor->m_lastFocus && g_pCompositor->m_lastFocus->mapped && g_pSeatManager->state.pointerFocus &&
|
||||||
|
!m_bHardInput) {
|
||||||
foundSurface = g_pSeatManager->state.pointerFocus.lock();
|
foundSurface = g_pSeatManager->state.pointerFocus.lock();
|
||||||
|
|
||||||
// IME popups aren't desktop-like elements
|
// IME popups aren't desktop-like elements
|
||||||
|
|
Loading…
Reference in a new issue