mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-20 06:50:10 +01:00
internal: fix subtractWindow typo for POSYSTR (#12259)
This type really pisses me off
This commit is contained in:
parent
b2ea6b010c
commit
ac8edc6a80
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue