From ac8edc6a805ae411d066a088a0036971d781a279 Mon Sep 17 00:00:00 2001 From: Chudnikov Alexander <98046668+chooisfox@users.noreply.github.com> Date: Tue, 11 Nov 2025 19:11:54 +0300 Subject: [PATCH] internal: fix subtractWindow typo for POSYSTR (#12259) This type really pisses me off --- src/events/Windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 16f715342..9e3b49d4d 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -498,7 +498,7 @@ void Events::listener_mapWindow(void* owner, void* data) { } if (POSYSTR.starts_with("100%-")) { - const bool subtractWindow = POSYSTR.starts_with("100%-w-"); + const bool subtractWindow = POSYSTR.starts_with("100%-h-"); const auto POSYRAW = (subtractWindow) ? POSYSTR.substr(7) : POSYSTR.substr(5); posY = PMONITOR->m_size.y - (!POSYRAW.contains('%') ? std::stoi(POSYRAW) : std::stof(POSYRAW.substr(0, POSYRAW.length() - 1)) * 0.01 * PMONITOR->m_size.y);