system
February 16, 2014, 8:35pm
1
afalkenhahn wrote on Sunday, February 16, 2014 :
Hi,
is it possible to programmatically activate a GLFW window? Suppose I have four different GLFW windows and now I’d like to make one of them the active window… is that possible somehow? I can listen to focus changes but I don’t seem to be able to set focus programmatically. Maybe we’d need something like glfwSetWindowFocus()…
system
March 6, 2014, 10:31pm
2
xdread wrote on Thursday, March 06, 2014 :
I think you can use glfw3native and then one of these functions to obtain a window handle to set focus:
http://www.glfw.org/docs/latest/glfw3native_8h.html
Just define two macros like described in this document before including the header file:
http://www.glfw.org/docs/latest/group__native.html
EDIT: It is worth mentioning that this is platform specific, so you need to make the platform independence yourself in this case.
system
January 2, 2015, 5:23pm
3
divxdede wrote on Friday, January 02, 2015 :
It would be nice to have a glfwFocusWindow like we have with glfwIconifyWindow
I can’t use native since i use a wrapper that don’t expose it to me…
Window focusing has been added and will be included in 3.2.
committed 02:42PM - 21 Feb 16 UTC
This removes the (undocumented) behavior where glfwShowWindow would
bring the window to front and set input focus. That function now
does what it...