mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-22 21:35:58 +01:00
Correctly lay out centered floating on multimon
This commit is contained in:
parent
da349a03b2
commit
0cfe129ce4
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ CWindow* Events::remapFloatingWindow(int windowID, int forcemonitor) {
|
||||||
if (nextWindowCentered) {
|
if (nextWindowCentered) {
|
||||||
nextWindowCentered = false;
|
nextWindowCentered = false;
|
||||||
|
|
||||||
window.setDefaultPosition(g_pWindowManager->monitors[CURRENTSCREEN].vecSize / 2.f - window.getDefaultSize() / 2.f);
|
window.setDefaultPosition(g_pWindowManager->monitors[CURRENTSCREEN].vecPosition + g_pWindowManager->monitors[CURRENTSCREEN].vecSize / 2.f - window.getDefaultSize() / 2.f);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue