LWJGL Forum

Programming => Bug Reports / RFE => Topic started by: Olliebrown on August 30, 2015, 16:08:07

Title: [BUG] LWJGL 3.0.0b stable / Mac (10.10.5), Mouse press w/ click to focus
Post by: Olliebrown on August 30, 2015, 16:08:07
Greetings!  I can't find mention of this anywhere and it's causing some issues.

When I click to give focus to a LWJGL/GLFW window a mouse press event never gets fired.  This can cause some odd situations like the following:

My experience with other windowing systems would make an initial click on the window to gain focus also immediately trigger the mouse press event in addition to a focus event (and sometimes a mouse enter event as well).  Right now, the focus and enter events are happening essentially simultaneously but no press event happens.

I suppose it's likely that this is a GLFW issue but figured I should start here as this is how I am using LWJGL.

Thanks!
Seth B.
Title: Re: [BUG] LWJGL 3.0.0b stable / Mac (10.10.5), Mouse press w/ click to focus
Post by: spasi on August 30, 2015, 18:19:43
Hey Seth,

I was able to verify what you describe, using the Events demo (https://github.com/LWJGL/lwjgl3/blob/master/modules/core/src/test/java/org/lwjgl/demo/glfw/Events.java). On Windows I'm getting the press/release events and there other differences too (e.g. cursor move events before the window receives focus). These could simply be fundamental differences between operating systems. It'd be probably be best to open a GLFW issue (https://github.com/glfw/glfw/issues) to make sure.
Title: Re: [BUG] LWJGL 3.0.0b stable / Mac (10.10.5), Mouse press w/ click to focus
Post by: Cornix on August 30, 2015, 18:24:07
Well, it would surely be nice to get consistent behavior across platforms from a cross platform library.