From 821b84921833e8916259e0c1339b9884f5aa0afd Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Fri, 13 Jan 2023 12:46:09 +0100 Subject: [PATCH] add comments --- src/Window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Window.cpp b/src/Window.cpp index c7e9212f..92fb6e30 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -383,6 +383,8 @@ void CWindow::updateDynamicRules() { } // check if the point is "hidden" under a rounded corner of the window +// it is assumed that the point is within the real window box (m_vRealPosition, m_vRealSize) +// otherwise behaviour is undefined bool CWindow::isInCurvedCorner(double x, double y) { static auto* const ROUNDING = &g_pConfigManager->getConfigValuePtr("decoration:rounding")->intValue; static auto* const BORDERSIZE = &g_pConfigManager->getConfigValuePtr("general:border_size")->intValue;