diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-08-30 19:21:45 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-08-30 19:21:45 +0200 |
| commit | 195ec2b092742671dbdb567cbab42b2d1efe2b65 (patch) | |
| tree | 3a6506a7d71052173f82990cfc966ec832b202b5 /src/events/Popups.cpp | |
| parent | dd6aba07e94cc784752719da5d7ce51a571677f4 (diff) | |
fix LS popup damage
Diffstat (limited to 'src/events/Popups.cpp')
| -rw-r--r-- | src/events/Popups.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/events/Popups.cpp b/src/events/Popups.cpp index 6c8d802f..d5eb9513 100644 --- a/src/events/Popups.cpp +++ b/src/events/Popups.cpp @@ -32,6 +32,12 @@ 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); + px -= EXTENTSSURFACE->x1; + py -= EXTENTSSURFACE->y1; + } + if (curPopup->parentPopup) { curPopup = curPopup->parentPopup; } else { |
