mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-12-25 02:39:49 +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)
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue