Alpar had the key, focus can be set in the window class. But it is not enough, the focused widget has to be activated, as well! Was a hard task to find out... By the way, two compilation warnings are removed.
1 AC_DEFUN([LX_ENABLE_GUI],
4 AS_HELP_STRING([--enable-gui], [build the GUI])
5 AS_HELP_STRING([--disable-gui], [do not build the GUI @<:@default@:>@]),
8 AC_MSG_CHECKING([whether to build the GUI])
9 if test x"$enable_gui" != x"no"; then
14 if test x"$enable_gui" != x"no"; then
15 PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0])
17 AM_CONDITIONAL([WANT_GUI], [test x"$enable_gui" != x"no"])