From c99062f2ecbc6882adbc7c59ea56bf31b24192ed Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 7 Apr 2022 16:42:16 +0200 Subject: [PATCH] =?UTF-8?q?Finally=20fixed=20#4=20=F0=9F=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/events/Popups.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/events/Popups.cpp b/src/events/Popups.cpp index f576be9a..ccfa91e1 100644 --- a/src/events/Popups.cpp +++ b/src/events/Popups.cpp @@ -50,7 +50,7 @@ void createNewPopup(wlr_xdg_popup* popup, SXDGPopup* pHyprPopup) { const auto PMONITOR = g_pCompositor->m_pLastMonitor; - double lx = 0, ly = 0; + double lx = pHyprPopup->lx, ly = pHyprPopup->ly; wlr_output_layout_output_coords(g_pCompositor->m_sWLROutputLayout, PMONITOR->output, &lx, &ly); wlr_box box = {.x = lx, .y = ly, .width = PMONITOR->vecSize.x, .height = PMONITOR->vecSize.y}; @@ -58,6 +58,8 @@ void createNewPopup(wlr_xdg_popup* popup, SXDGPopup* pHyprPopup) { wlr_xdg_popup_unconstrain_from_box(popup, &box); pHyprPopup->monitor = PMONITOR; + + Debug::log(LOG, "Popup: Coords %ix%i, at %i %i", popup->geometry.width, popup->geometry.height, popup->geometry.x, popup->geometry.y); } void Events::listener_newPopup(void* owner, void* data) {