fix minor issues with move focus and follow mouse 0

This commit is contained in:
vaxerski
2022-12-10 15:15:40 +00:00
parent 62f4503f07
commit c3f1dc3f52
2 changed files with 8 additions and 11 deletions

View File

@@ -297,16 +297,12 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
m_bLastFocusOnLS = false;
} else {
if (pFoundLayerSurface) {
m_bLastFocusOnLS = true;
if (pFoundLayerSurface->layer <= ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM) {
g_pCompositor->focusWindow(nullptr);
}
}
if (pFoundLayerSurface && pFoundLayerSurface->layerSurface->current.keyboard_interactive && *PFOLLOWMOUSE != 3 && allowKeyboardRefocus) {
g_pCompositor->focusSurface(foundSurface);
}
if (pFoundLayerSurface)
m_bLastFocusOnLS = true;
}
wlr_seat_pointer_notify_enter(g_pCompositor->m_sSeat.seat, foundSurface, surfaceLocal.x, surfaceLocal.y);