diff options
Diffstat (limited to 'src/tk/button.c')
-rw-r--r-- | src/tk/button.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tk/button.c b/src/tk/button.c index a236dd4..0b5e874 100644 --- a/src/tk/button.c +++ b/src/tk/button.c @@ -51,6 +51,7 @@ _mftk_button_event(struct mftk_widget *w, SDL_Event *e, switch (e->type) { case SDL_MOUSEBUTTONUP: if (e->button.button == SDL_BUTTON_LEFT) { + mftk_window_focus(w->window, w); if (b->action == NULL) { return 0; } |