Following up on this message, this is fixed in SVN.
-Ben
Ben Collver wrote:
Good day,
I am trying to programmatically set focus on a VG_View widget that
takes up a whole window. It does not seem to work as expected. Below
is a test program to demonstrate the problem. I compile and run this
program on Linux. It opens an SDL window, which has focus. If I
press a key, the program prints no key-down lines. If I click anywhere
in the window and press a key, then the program generates key-down lines.
The debug messages show that AG_WidgetFocus() returns 1 for success,
and window->nFocused increases from 0 to 1. However, the debug
messages also show that AG_WidgetIsFocused() returns 0, which seems to
contradict the other results.
Am I missing a step to set focus on the VG_View widget? Any help
would be appreciated.
Thank you,
-Ben
_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html