diff options
author | vaxerski <[email protected]> | 2022-07-29 11:45:32 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-07-29 11:45:32 +0200 |
commit | 429a9bc6c3ce9ea932bc989856e1c51582c44bf9 (patch) | |
tree | 226a95bde07b8b09848e2240f328b8963315ccc0 | |
parent | 233bad5011830923bd4fa72926415d0e5c7a2298 (diff) | |
download | Hyprland-429a9bc6c3ce9ea932bc989856e1c51582c44bf9.tar.gz Hyprland-429a9bc6c3ce9ea932bc989856e1c51582c44bf9.zip |
hide only XWayland on incorrect size
-rw-r--r-- | src/layout/IHyprLayout.cpp | 2 | ||||
-rw-r--r-- | src/render/Renderer.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index d9dc50c0..cff927be 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) { + if ((desiredGeometry.width <= 1 || desiredGeometry.height <= 1) && pWindow->m_bIsX11) { // XDG windows should be fine. TODO: check for weird atoms? pWindow->m_bHidden = true; return; } diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index ed1817f6..e8ee06f6 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -62,7 +62,6 @@ void renderSurface(struct wlr_surface* surface, int x, int y, void* data) { g_pHyprOpenGL->renderTexture(TEXTURE, &windowBox, RDATA->fadeAlpha * RDATA->alpha, rounding, false); } - wlr_surface_send_frame_done(surface, RDATA->when); |