aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-08-21 21:23:05 +0200
committervaxerski <[email protected]>2022-08-21 21:23:05 +0200
commitebe07c66567eae0f564288296f7d2f0f6b92e1f8 (patch)
treec597ab1fdb10f538905b4fe0e278017ca89636ab
parentce62a9847082bd2837c9802dc23bf3e32b8510b8 (diff)
downloadHyprland-ebe07c66567eae0f564288296f7d2f0f6b92e1f8.tar.gz
Hyprland-ebe07c66567eae0f564288296f7d2f0f6b92e1f8.zip
fix incorrect popup handling on oversized
-rw-r--r--src/events/Popups.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/events/Popups.cpp b/src/events/Popups.cpp
index 9a04e69a..526919a1 100644
--- a/src/events/Popups.cpp
+++ b/src/events/Popups.cpp
@@ -104,12 +104,9 @@ void Events::listener_newPopupXDG(void* owner, void* data) {
const auto PMONITOR = g_pCompositor->getMonitorFromID(PWINDOW->m_iMonitorID);
- wlr_box geom;
- wlr_xdg_surface_get_geometry(PWINDOW->m_uSurface.xdg, &geom);
-
PNEWPOPUP->popup = WLRPOPUP;
- PNEWPOPUP->lx = PWINDOW->m_vRealPosition.goalv().x - geom.x;
- PNEWPOPUP->ly = PWINDOW->m_vRealPosition.goalv().y - geom.y;
+ PNEWPOPUP->lx = PWINDOW->m_vRealPosition.goalv().x;
+ PNEWPOPUP->ly = PWINDOW->m_vRealPosition.goalv().y;
PNEWPOPUP->parentWindow = PWINDOW;
PNEWPOPUP->monitor = PMONITOR;
createNewPopup(WLRPOPUP, PNEWPOPUP);