From 71ea71540ab637dbec6d715ed9a157542a9ff03f Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 20 Nov 2010 18:50:45 +0000 Subject: Give the browser window widget input focus by defualt on startup. svn path=/trunk/netsurf/; revision=10948 --- framebuffer/fbtk/event.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'framebuffer/fbtk/event.c') diff --git a/framebuffer/fbtk/event.c b/framebuffer/fbtk/event.c index c1ddaeeb0..c1c4bc1ee 100644 --- a/framebuffer/fbtk/event.c +++ b/framebuffer/fbtk/event.c @@ -52,8 +52,10 @@ fbtk_input(fbtk_widget_t *root, nsfb_event_t *event) /* obtain widget with input focus */ input = root->u.root.input; - if (input == NULL) + if (input == NULL) { + LOG(("No widget has input focus.")); return; /* no widget with input */ + } fbtk_post_callback(input, FBTK_CBT_INPUT, event); } -- cgit v1.2.3