From d499c55a3a67253d054e3428cd7e8a904c8f26ff Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Thu, 12 Jan 2023 15:13:51 +0100 Subject: [PATCH] remove resize on border check if in fullscreen --- src/managers/input/InputManager.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 3d1aa9b6..b89da0cb 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -395,11 +395,10 @@ void CInputManager::processMouseDownNormal(wlr_pointer_button_event* e) { // TODO also check surfaces, maybe move into the switch statement below (focuses window first), // so that I don't have to find surfaces myself, plus no need for vectorToWindowIdeal to find the window const auto w = g_pCompositor->vectorToWindowIdeal(getMouseCoordsInternal()); - // TODO exclude if fullscreen - if (*PBORDERRESIZE && w) { - const wlr_box box = w->getFullWindowBoundingBox(); - const wlr_box real = {w->m_vRealPosition.vec().x, w->m_vRealPosition.vec().y, w->m_vRealSize.vec().x, w->m_vRealSize.vec().y}; - const auto mouseCoords = g_pInputManager->getMouseCoordsInternal(); + if (*PBORDERRESIZE && w && !w->m_bIsFullscreen && !w->m_bFakeFullscreenState) { + const wlr_box box = w->getFullWindowBoundingBox(); + const wlr_box real = {w->m_vRealPosition.vec().x, w->m_vRealPosition.vec().y, w->m_vRealSize.vec().x, w->m_vRealSize.vec().y}; + const auto mouseCoords = g_pInputManager->getMouseCoordsInternal(); if (wlr_box_contains_point(&box, mouseCoords.x, mouseCoords.y) && (!wlr_box_contains_point(&real, mouseCoords.x, mouseCoords.y) || w->isInCurvedCorner(mouseCoords.x, mouseCoords.y))) { g_pKeybindManager->resizeWithBorder(e);