This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository e16.

View the commit online.

commit 474b5161ad8d010709c4af91c4be31dced3b2387
Author: Kim Woelders <[email protected]>
AuthorDate: Fri May 27 17:13:40 2022 +0200

    ewins: Fix ewin area calculation
    
    Checking EwinIsOnScreen() was meant to be an optimization but may cause
    inconsistencies if ewin is slightly off-screen.
---
 src/ewin-ops.c | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/src/ewin-ops.c b/src/ewin-ops.c
index 8f5862e9..696881d6 100644
--- a/src/ewin-ops.c
+++ b/src/ewin-ops.c
@@ -140,17 +140,9 @@ EwinDetermineArea(EWin * ewin)
    ewin->vx = dsk->current_area_x * EoGetW(dsk) + EoGetX(ewin);
    ewin->vy = dsk->current_area_y * EoGetH(dsk) + EoGetY(ewin);
 
-   if (EwinIsOnScreen(ewin))
-     {
-	ax = dsk->current_area_x;
-	ay = dsk->current_area_y;
-     }
-   else
-     {
-	ax = (ewin->vx + EoGetW(ewin) / 2) / EoGetW(dsk);
-	ay = (ewin->vy + EoGetH(ewin) / 2) / EoGetH(dsk);
-	DesksFixArea(&ax, &ay);
-     }
+   ax = (ewin->vx + EoGetW(ewin) / 2) / EoGetW(dsk);
+   ay = (ewin->vy + EoGetH(ewin) / 2) / EoGetH(dsk);
+   DesksFixArea(&ax, &ay);
 
    if (ax != ewin->area_x || ay != ewin->area_y)
      {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to