diff options
Diffstat (limited to 'src/tk/box.c')
-rw-r--r-- | src/tk/box.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tk/box.c b/src/tk/box.c index 1a45589..ca60ab2 100644 --- a/src/tk/box.c +++ b/src/tk/box.c @@ -67,7 +67,8 @@ _mftk_box_event(struct mftk_widget *w, SDL_Event *e, int x, int y) rect.w = b->child->w; rect.h = b->child->h; if (SDL_PointInRect(&p, &rect) == SDL_TRUE) { - return mftk_widget_event(b->child, e, x, y); + return mftk_widget_event(b->child, e, + rect.x, rect.y); } break; default: |