summaryrefslogtreecommitdiff
path: root/src/layout/IHyprLayout.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-08-03 21:03:08 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-08-03 21:03:08 +0200
commit9540106959182e6810e257ac8f708d754ac49069 (patch)
tree7f588e846ffb4e0fc682f6e259319893070e6367 /src/layout/IHyprLayout.cpp
parent69558acb2e0db41dce2e1599708edbdfe8c595c9 (diff)
check for x11type and not nofocus in wcf
Diffstat (limited to 'src/layout/IHyprLayout.cpp')
-rw-r--r--src/layout/IHyprLayout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp
index 8e2baed4..fc32c243 100644
--- a/src/layout/IHyprLayout.cpp
+++ b/src/layout/IHyprLayout.cpp
@@ -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 && pWindow->m_bNoInitialFocus) { // XDG windows should be fine. TODO: check for weird atoms?
+ if ((desiredGeometry.width <= 1 || desiredGeometry.height <= 1) && pWindow->m_bIsX11 && pWindow->m_iX11Type == 2) { // XDG windows should be fine. TODO: check for weird atoms?
pWindow->m_bHidden = true;
return;
}