diff options
author | vaxerski <[email protected]> | 2022-08-27 22:31:13 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-08-27 22:31:13 +0200 |
commit | 261493d58446dcfb9a30851b6d409841606c7213 (patch) | |
tree | c3804b6fa68ca0fe7539e657da7204d4a5872cd2 | |
parent | 47a4ea21caeee925646448b22a752a788c160f15 (diff) | |
download | Hyprland-261493d58446dcfb9a30851b6d409841606c7213.tar.gz Hyprland-261493d58446dcfb9a30851b6d409841606c7213.zip |
fix popup damage issues on LS
-rw-r--r-- | src/events/Popups.cpp | 2 | ||||
-rw-r--r-- | src/render/Renderer.cpp | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/events/Popups.cpp b/src/events/Popups.cpp index 6be94453..5f5dbdab 100644 --- a/src/events/Popups.cpp +++ b/src/events/Popups.cpp @@ -27,7 +27,7 @@ void addPopupGlobalCoords(void* pPopup, int* x, int* y) { px += curPopup->popup->current.geometry.x; py += curPopup->popup->current.geometry.y; - if (curPopup == PPOPUP) { + if (curPopup == PPOPUP && PPOPUP->parentWindow) { px -= curPopup->popup->base->current.geometry.x; py -= curPopup->popup->base->current.geometry.y; } diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 23ee5f11..ce0cc616 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -17,11 +17,6 @@ void renderSurface(struct wlr_surface* surface, int x, int y, void* data) { else // here we clamp to 2, these might be some tiny specks windowBox = {(int)outputX + RDATA->x + x, (int)outputY + RDATA->y + y, std::clamp(surface->current.width, 2, 1337420), std::clamp(surface->current.height, 2, 1337420)}; - // squish all oversized but dont in some cases, jesus christ this is a mess - // TODO: this shouldn't be done this way. Custom UV here as well. - // this is fucking horrible - // Issue: will cause oversized apps with reserved area to overflow from the window box. (see chromium on ozone wayland) - const auto PRESQUISHSIZE = Vector2D(windowBox.width, windowBox.height); if (RDATA->squishOversized) { if (x + windowBox.width > RDATA->w) windowBox.width = RDATA->w - x; |