From 3c20ecb04d043013b559ec50fba4f816f05f0025 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 28 Aug 2022 21:20:18 +0200 Subject: [PATCH] ignore oversized popups' dims in global coords --- src/events/Popups.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/events/Popups.cpp b/src/events/Popups.cpp index 5f5dbdab0..6c8d802ff 100644 --- a/src/events/Popups.cpp +++ b/src/events/Popups.cpp @@ -32,14 +32,6 @@ void addPopupGlobalCoords(void* pPopup, int* x, int* 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) { curPopup = curPopup->parentPopup; } else {