Correctly lay out centered floating on multimon

This commit is contained in:
vaxerski 2021-12-01 22:28:53 +01:00
parent da349a03b2
commit 0cfe129ce4

View file

@ -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);
} }
// //