summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-10-21 23:52:36 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-10-21 23:52:36 -0700
commit0c9763f545186cde37a5bdb25bc2843ed3e3003d (patch)
treec66c8b3f68d8fd6ddacdc02bfb188ee69c35c63b
parentf5c9b65592327c2094d5981bb95d3e4afdf76344 (diff)
poll_events: fix area covers clip case in clip_event_area()
this seems obviously wrong
-rw-r--r--src/rmd_poll_events.c4
1 files 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;
© All Rights Reserved