mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-26 06:45:58 +01:00
Fixed #5
This commit is contained in:
parent
9f8a71322c
commit
c1483d571d
1 changed files with 5 additions and 2 deletions
|
@ -606,12 +606,15 @@ void CWindowManager::calculateNewFloatingWindow(CWindow* pWindow) {
|
||||||
if (!pWindow)
|
if (!pWindow)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
pWindow->setPosition(pWindow->getDefaultPosition());
|
//pWindow->setPosition(pWindow->getDefaultPosition());
|
||||||
pWindow->setSize(pWindow->getDefaultSize());
|
pWindow->setSize(pWindow->getDefaultSize());
|
||||||
|
|
||||||
pWindow->setEffectivePosition(pWindow->getDefaultPosition());
|
pWindow->setEffectivePosition(pWindow->getPosition() + Vector2D(10,10));
|
||||||
pWindow->setEffectiveSize(pWindow->getDefaultSize());
|
pWindow->setEffectiveSize(pWindow->getDefaultSize());
|
||||||
|
|
||||||
|
pWindow->setRealPosition(pWindow->getPosition());
|
||||||
|
pWindow->setRealSize(pWindow->getSize());
|
||||||
|
|
||||||
Values[0] = XCB_STACK_MODE_ABOVE;
|
Values[0] = XCB_STACK_MODE_ABOVE;
|
||||||
xcb_configure_window(DisplayConnection, pWindow->getDrawable(), XCB_CONFIG_WINDOW_STACK_MODE, Values);
|
xcb_configure_window(DisplayConnection, pWindow->getDrawable(), XCB_CONFIG_WINDOW_STACK_MODE, Values);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue