The following shows the diffstat and patchsets between
d4ad353..fb4e671^
----------------------------------------------------------------
commit fb4e67175c495b95bc0d7efb02167839abd2a00b
Author: Thomas Adam <[email protected]>
Date:   Sun Nov 2 23:14:27 2014 +0000

    IsRectangleOnThisPage():  Fix coord calcs
    
    When checking that a given rectagle is on a given page, ensure the 
monitor's x/y
    offets are taken into account.
---
 mvwm/misc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mvwm/misc.c b/mvwm/misc.c
index 28703d9..b6423ee 100644
--- a/mvwm/misc.c
+++ b/mvwm/misc.c
@@ -527,9 +527,9 @@ Bool IsRectangleOnThisPage(struct monitor *m, const 
rectangle *rec, int desk)
 
        return (desk == m->virtual_scr.CurrentDesk &&
                rec->x + (signed int)rec->width > 0 &&
-               (rec->x < 0 || rec->x < m->coord.w) &&
+               (rec->x > m->coord.x || rec->x < m->coord.w) &&
                rec->y + (signed int)rec->height > 0 &&
-               (rec->y < 0 || rec->y < m->coord.h)) ?
+               (rec->y > m->coord.y || rec->y < m->coord.h)) ?
                True : False;
 }
 

----------------------------------------------------------------

Diffstat:

----------------------------------------------------------------
 mvwm/misc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

----------------------------------------------------------------

Reply via email to