jscene: fix delivery of focus change events
This commit is contained in:
parent
5b591a6fb4
commit
2e15bb8c96
|
@ -128,13 +128,13 @@ void jscene_set_focused_widget(jscene *s, void *w0)
|
|||
}
|
||||
|
||||
/* Focus out old focused widget */
|
||||
if(s->focus) jscene_queue_event(s,
|
||||
if(s->focus) jwidget_event(s->focus,
|
||||
(jevent){ .type = JWIDGET_FOCUS_OUT, .source = s->focus });
|
||||
|
||||
s->focus = w;
|
||||
|
||||
/* Focus in newly-selected widget */
|
||||
if(w) jscene_queue_event(s,
|
||||
if(w) jwidget_event(w,
|
||||
(jevent){ .type = JWIDGET_FOCUS_IN, .source = w });
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue