mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 19:25:59 +01:00
fix LS popup damage
This commit is contained in:
parent
dd6aba07e9
commit
195ec2b092
1 changed files with 6 additions and 0 deletions
|
@ -32,6 +32,12 @@ void addPopupGlobalCoords(void* pPopup, int* x, int* y) {
|
||||||
py -= curPopup->popup->base->current.geometry.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) {
|
if (curPopup->parentPopup) {
|
||||||
curPopup = curPopup->parentPopup;
|
curPopup = curPopup->parentPopup;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue