summaryrefslogtreecommitdiff
path: root/src/events/Popups.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-07 16:42:16 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-04-07 16:42:16 +0200
commitc99062f2ecbc6882adbc7c59ea56bf31b24192ed (patch)
tree1d8a0077bcaff1e06b8cb12bda1286bacbddd477 /src/events/Popups.cpp
parentc7cc9d49d22172dd6d62ae8560bfd7a699e0051b (diff)
Finally fixed #4 🎉
Diffstat (limited to 'src/events/Popups.cpp')
-rw-r--r--src/events/Popups.cpp4
1 files changed, 3 insertions, 1 deletions
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) {