Diff
1diff --git a/src/Hy3Layout.cpp b/src/Hy3Layout.cpp
2index bca5224ae5f9878c7c7260386b242f6ff58c0a80..09ba804626a9ac99dbeba552736995405e3d1f36 100644
3--- a/src/Hy3Layout.cpp
4+++ b/src/Hy3Layout.cpp
5@@ -157,7 +157,7 @@ void Hy3Layout::insertNode(Hy3Node& node) {
6 opening_after = this->getNodeFromWindow(g_pCompositor->m_pLastWindow);
7 } else {
8 auto* mouse_window =
9- g_pCompositor->vectorToWindowTiled(g_pInputManager->getMouseCoordsInternal());
10+ g_pCompositor->vectorToWindowUnified(g_pInputManager->getMouseCoordsInternal(), RESERVED_EXTENTS | INPUT_EXTENTS);
11
12 if (mouse_window != nullptr && mouse_window->m_iWorkspaceID == node.workspace_id) {
13 opening_after = this->getNodeFromWindow(mouse_window);
14@@ -1227,8 +1227,8 @@ void Hy3Layout::focusTab(
15 Hy3Node* tab_focused_node;
16
17 if (target == TabFocus::MouseLocation || mouse != TabFocusMousePriority::Ignore) {
18- if (g_pCompositor->windowFloatingFromCursor() == nullptr) {
19- auto mouse_pos = g_pInputManager->getMouseCoordsInternal();
20+ auto mouse_pos = g_pInputManager->getMouseCoordsInternal();
21+ if (g_pCompositor->vectorToWindowUnified(mouse_pos, RESERVED_EXTENTS | INPUT_EXTENTS | ALLOW_FLOATING | FLOATING_ONLY) == nullptr) {
22 tab_node = findTabBarAt(*node, mouse_pos, &tab_focused_node);
23 if (tab_node != nullptr) goto hastab;
24 }