summaryrefslogtreecommitdiff
path: root/src/events/Popups.cpp
diff options
context:
space:
mode:
authorFelix Dick <felix.dick@web.de>2022-10-10 01:46:22 +0200
committerFelix Dick <felix.dick@web.de>2022-10-10 02:45:40 +0200
commit7e781f24c5140e3554a45ff236a339647fba1c34 (patch)
tree4c4effecfdc5192387eb80c033e09e6f8719e171 /src/events/Popups.cpp
parent3bf7c5aea1d20cc6a0fc95f920111548e7863af9 (diff)
parentcb687c208c116ea870f827d8b2ee963655599f1f (diff)
Merge branch 'main' into simplify_matrix_calculations
Diffstat (limited to 'src/events/Popups.cpp')
-rw-r--r--src/events/Popups.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/events/Popups.cpp b/src/events/Popups.cpp
index 74865f95..afc1e7c8 100644
--- a/src/events/Popups.cpp
+++ b/src/events/Popups.cpp
@@ -32,8 +32,8 @@ void addPopupGlobalCoords(void* pPopup, int* x, int* y) {
py -= curPopup->popup->base->current.geometry.y;
}
- if (curPopup->pSurfaceTree && curPopup->pSurfaceTree->pSurface && !curPopup->parentPopup && !curPopup->parentWindow) {
- const auto EXTENTSSURFACE = pixman_region32_extents(&curPopup->pSurfaceTree->pSurface->input_region);
+ if (curPopup->popup && !curPopup->parentPopup && !curPopup->parentWindow) {
+ const auto EXTENTSSURFACE = pixman_region32_extents(&curPopup->popup->base->surface->input_region);
px -= EXTENTSSURFACE->x1;
py -= EXTENTSSURFACE->y1;
}