Skip to content

Commit

Permalink
fix LS popup damage
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Aug 30, 2022
1 parent dd6aba0 commit 195ec2b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/events/Popups.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 195ec2b

Please sign in to comment.