From ede8fc07682b5e10cc65e954ab1f3dd5bd766ce8 Mon Sep 17 00:00:00 2001 From: steffen Date: Mon, 25 Mar 2013 21:12:04 +0000 Subject: [PATCH] entry button should not have focus.. --- gui/gui_button.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/gui_button.c b/gui/gui_button.c index e45cc8c..5db60e0 100644 --- a/gui/gui_button.c +++ b/gui/gui_button.c @@ -1,4 +1,4 @@ -/* $Id: gui_button.c,v 1.9 2013/03/10 23:32:28 steffen Exp $ */ +/* $Id: gui_button.c,v 1.10 2013/03/25 21:12:04 steffen Exp $ */ /*************************************************************************** * gui_button.c * @@ -88,7 +88,7 @@ int gui_button_event (GUIItem *item, GUIEvent *event) { button = (GUIButton *) item->data; if (button->callback_clicked != NULL && event->event == EGUI_MOUSEPRESSED) { - gui_set_focus (item); + gui_set_focus (NULL); button->callback_clicked (event->mousepos.x-item->x, event->mousepos.y-item->y); }