summaryrefslogtreecommitdiff
path: root/src/events/Windows.cpp
diff options
context:
space:
mode:
authorChudnikov Alexander <98046668+chooisfox@users.noreply.github.com>2025-11-11 19:11:54 +0300
committerGitHub <noreply@github.com>2025-11-11 16:11:54 +0000
commitac8edc6a805ae411d066a088a0036971d781a279 (patch)
treefcdff20bcd0c90e056798d78b3c3dfdb982df814 /src/events/Windows.cpp
parentb2ea6b010c36fa3c6a374af4e555eba5df32947e (diff)
internal: fix subtractWindow typo for POSYSTR (#12259)
This type really pisses me off
Diffstat (limited to 'src/events/Windows.cpp')
-rw-r--r--src/events/Windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index 16f71534..9e3b49d4 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);