mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 18:53:40 +01:00
Fix building on Hyprland 0.35.0
Ref https://github.com/hyprwm/Hyprland/pull/4514
This commit is contained in:
parent
d247317a38
commit
acedb05a75
1 changed files with 3 additions and 3 deletions
|
@ -157,7 +157,7 @@ void Hy3Layout::insertNode(Hy3Node& node) {
|
|||
opening_after = this->getNodeFromWindow(g_pCompositor->m_pLastWindow);
|
||||
} else {
|
||||
auto* mouse_window =
|
||||
g_pCompositor->vectorToWindowTiled(g_pInputManager->getMouseCoordsInternal());
|
||||
g_pCompositor->vectorToWindowUnified(g_pInputManager->getMouseCoordsInternal(), RESERVED_EXTENTS | INPUT_EXTENTS);
|
||||
|
||||
if (mouse_window != nullptr && mouse_window->m_iWorkspaceID == node.workspace_id) {
|
||||
opening_after = this->getNodeFromWindow(mouse_window);
|
||||
|
@ -1227,8 +1227,8 @@ void Hy3Layout::focusTab(
|
|||
Hy3Node* tab_focused_node;
|
||||
|
||||
if (target == TabFocus::MouseLocation || mouse != TabFocusMousePriority::Ignore) {
|
||||
if (g_pCompositor->windowFloatingFromCursor() == nullptr) {
|
||||
auto mouse_pos = g_pInputManager->getMouseCoordsInternal();
|
||||
auto mouse_pos = g_pInputManager->getMouseCoordsInternal();
|
||||
if (g_pCompositor->vectorToWindowUnified(mouse_pos, RESERVED_EXTENTS | INPUT_EXTENTS | ALLOW_FLOATING | FLOATING_ONLY) == nullptr) {
|
||||
tab_node = findTabBarAt(*node, mouse_pos, &tab_focused_node);
|
||||
if (tab_node != nullptr) goto hastab;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue