This commit is contained in:
vaxerski 2021-11-25 16:06:52 +01:00
parent 9f8a71322c
commit c1483d571d

View file

@ -606,12 +606,15 @@ void CWindowManager::calculateNewFloatingWindow(CWindow* pWindow) {
if (!pWindow)
return;
pWindow->setPosition(pWindow->getDefaultPosition());
//pWindow->setPosition(pWindow->getDefaultPosition());
pWindow->setSize(pWindow->getDefaultSize());
pWindow->setEffectivePosition(pWindow->getDefaultPosition());
pWindow->setEffectivePosition(pWindow->getPosition() + Vector2D(10,10));
pWindow->setEffectiveSize(pWindow->getDefaultSize());
pWindow->setRealPosition(pWindow->getPosition());
pWindow->setRealSize(pWindow->getSize());
Values[0] = XCB_STACK_MODE_ABOVE;
xcb_configure_window(DisplayConnection, pWindow->getDrawable(), XCB_CONFIG_WINDOW_STACK_MODE, Values);
}