summaryrefslogtreecommitdiff
path: root/src/events/Windows.cpp
diff options
context:
space:
mode:
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);