DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New] Link: http://www.fltk.org/str.php?L1833 Version: 2.0-current Hi, by default an OpenGL window does not take focus, so you won't receive any FOCUS and UNFOCUS events. What you need is: ---------------------- switch (event) { // mouse stuff case FL_ENTER: cursor(FL_CURSOR_CROSS); take_focus(); // an Fl_Gl_Window does not normaly take focus break; case FL_LEAVE: cursor(FL_CURSOR_DEFAULT); break; ... // keyboard stuff ... } return 1; --------------------- One may consider this a bug in the documentation since it took me some time to find out - it should be clearly stated and solved by example in the documentation of the GL-Window. Link: http://www.fltk.org/str.php?L1833 Version: 2.0-current _______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
