LWJGL Forum

Programming => Bug Reports / RFE => Topic started by: haimat on March 14, 2015, 19:31:53

Title: getDisplayModes on Linux with two monitors
Post by: haimat on March 14, 2015, 19:31:53
When calling getDisplayModes() on a Linux machine with two monitors I only get one single resolution, that is, the current resolution set on the main monitor. However, calling xrandr directly gives me many more resolutions for both monitors.

Is this a bug in LWJGL, or am I missing something here?
Title: Re: getDisplayModes on Linux with two monitors
Post by: spasi on March 14, 2015, 22:41:32
LWJGL 2.x does not support multiple monitors. It is designed for a single window on a single monitor (the primary). If you need multiple window and/or multiple monitor support, try LWJGL 3.
Title: Re: getDisplayModes on Linux with two monitors
Post by: haimat on March 14, 2015, 23:06:25
Ohh I see.
Thanks for your quick reply!
Title: Re: getDisplayModes on Linux with two monitors
Post by: haimat on March 15, 2015, 16:09:28
I know this might be hard to answer, but is there maybe a rough ETA on when LWJGL 3 will be released?
Title: Re: getDisplayModes on Linux with two monitors
Post by: spasi on March 15, 2015, 19:19:45
The first official release (3.0a) was supposed to happen weeks ago, but I've had a horrible last couple of months at my day job and no free time at all. GLFW 3.1.1 is scheduled to be released next week, I'll try to make some time to get 3.0a out at the same time.
Title: Re: getDisplayModes on Linux with two monitors
Post by: haimat on March 15, 2015, 21:45:12
Thanks for the info, and good luck!