internal: fix subtractWindow typo for POSYSTR (#12259)

This type really pisses me off
This commit is contained in:
Chudnikov Alexander 2025-11-11 19:11:54 +03:00 committed by GitHub
parent b2ea6b010c
commit ac8edc6a80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -498,7 +498,7 @@ void Events::listener_mapWindow(void* owner, void* data) {
} }
if (POSYSTR.starts_with("100%-")) { 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); const auto POSYRAW = (subtractWindow) ? POSYSTR.substr(7) : POSYSTR.substr(5);
posY = posY =
PMONITOR->m_size.y - (!POSYRAW.contains('%') ? std::stoi(POSYRAW) : std::stof(POSYRAW.substr(0, POSYRAW.length() - 1)) * 0.01 * PMONITOR->m_size.y); PMONITOR->m_size.y - (!POSYRAW.contains('%') ? std::stoi(POSYRAW) : std::stof(POSYRAW.substr(0, POSYRAW.length() - 1)) * 0.01 * PMONITOR->m_size.y);