mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 23:29:48 +01:00
ignore oversized popups' dims in global coords
This commit is contained in:
parent
5da114477f
commit
3c20ecb04d
1 changed files with 0 additions and 8 deletions
|
@ -32,14 +32,6 @@ void addPopupGlobalCoords(void* pPopup, int* x, int* y) {
|
||||||
py -= curPopup->popup->base->current.geometry.y;
|
py -= curPopup->popup->base->current.geometry.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
// fix oversized fucking popups
|
|
||||||
// kill me
|
|
||||||
if (curPopup->pSurfaceTree && curPopup->pSurfaceTree->pSurface && !curPopup->parentPopup) {
|
|
||||||
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