diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-16 16:27:17 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-16 16:27:17 +0200 |
| commit | aac546b7710e14397f6986c55ad628fedac2de14 (patch) | |
| tree | c311c2b9d6267992d3fb5b1d3c2234fb19fb5321 /src/events/Windows.cpp | |
| parent | ef24329495d173b195a830727bfe7191c1761d12 (diff) | |
added center windowrule
Diffstat (limited to 'src/events/Windows.cpp')
| -rw-r--r-- | src/events/Windows.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index afedcf34..36f0b2db 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -224,6 +224,8 @@ void Events::listener_mapWindow(void* owner, void* data) { } catch (...) { Debug::log(LOG, "Rule move failed, rule: %s -> %s", r.szRule.c_str(), r.szValue.c_str()); } + } else if (r.szRule == "center") { + PWINDOW->m_vRealPosition = PMONITOR->vecPosition + PMONITOR->vecSize / 2.f - PWINDOW->m_vRealSize.goalv() / 2.f; } } |
