mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 20:05:58 +01:00
noInitialFocus in onWindowCreatedFloating as a check
This commit is contained in:
parent
37068cf4f0
commit
69558acb2e
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ void IHyprLayout::onWindowCreatedFloating(CWindow* pWindow) {
|
|||
const auto PWINDOWSURFACE = g_pXWaylandManager->getWindowSurface(pWindow);
|
||||
pWindow->m_vRealSize = Vector2D(PWINDOWSURFACE->current.width, PWINDOWSURFACE->current.height);
|
||||
|
||||
if ((desiredGeometry.width <= 1 || desiredGeometry.height <= 1) && pWindow->m_bIsX11) { // XDG windows should be fine. TODO: check for weird atoms?
|
||||
if ((desiredGeometry.width <= 1 || desiredGeometry.height <= 1) && pWindow->m_bIsX11 && pWindow->m_bNoInitialFocus) { // XDG windows should be fine. TODO: check for weird atoms?
|
||||
pWindow->m_bHidden = true;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue