From 0c9763f545186cde37a5bdb25bc2843ed3e3003d Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 21 Oct 2023 23:52:36 -0700 Subject: poll_events: fix area covers clip case in clip_event_area() this seems obviously wrong --- src/rmd_poll_events.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rmd_poll_events.c b/src/rmd_poll_events.c index f429b5c..6ce6def 100644 --- a/src/rmd_poll_events.c +++ b/src/rmd_poll_events.c @@ -53,8 +53,8 @@ static int clip_event_area(XDamageNotifyEvent *e, XRectangle *cliprect, XRectang #endif if ( e->area.x <= cliprect->x && e->area.y <= cliprect->y && - e->area.width >= cliprect->width && - e->area.height >= cliprect->height) { + e->area.x + e->area.width >= cliprect->x + cliprect->width && + e->area.y + e->area.height >= cliprect->y + cliprect->height) { /* area completely covers cliprect, cliprect becomes the area */ res->x = cliprect->x; -- cgit v1.2.3