LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: elias4444 on December 16, 2004, 01:49:36

Title: Display not grabbing focus?
Post by: elias4444 on December 16, 2004, 01:49:36
Here's an interesting one I'm seeing:

When my games start up, often they don't have the focus. In windowed mode, it often immediately goes behind other applications that are open, and in fullscreen mode, I still have to click the mouse on the screen before it'll accept the keyboard input. Is there a Display.focus() method or something similar?

Any help would be appreciated.
Title: Display not grabbing focus?
Post by: princec on December 16, 2004, 11:37:04
This is actually a bug. If the LWJGL window's in the foreground, it should grab the focus, but sometimes it doesn't and you have to click.

Cas :)
Title: Display not grabbing focus?
Post by: Chman on December 16, 2004, 15:18:58
I've got the same problem with AlienFlux... Just a click and let's go :)

Chman
Title: Display not grabbing focus?
Post by: elias4444 on December 16, 2004, 16:53:37
I guess it's a feature request for the next version then?
Title: Display not grabbing focus?
Post by: princec on December 16, 2004, 17:41:01
No, it's a bug fix for the next version :) Actually we've tried several times to get this working properly but we keep getting thwarted.

Cas :)