aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-10-09 17:09:11 +0100
committervaxerski <[email protected]>2022-10-09 17:10:20 +0100
commit0743dab3f05667afe187558fe06dcb07ec66c990 (patch)
treeffa12fd19aacd36af234dcfa18506b0e19b09de6
parent496e37d044a091baa2097c6e8e1d4a3992e11ec6 (diff)
downloadHyprland-0743dab3f05667afe187558fe06dcb07ec66c990.tar.gz
Hyprland-0743dab3f05667afe187558fe06dcb07ec66c990.zip
use popup base surface instead of subsurface for addPopupGlobalCoords
-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;
}