Hello Guest

getDisplayModes on Linux with two monitors

  • 5 Replies
  • 7536 Views
getDisplayModes on Linux with two monitors
« 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?

*

Online spasi

  • *****
  • 2261
    • WebHotelier
Re: getDisplayModes on Linux with two monitors
« Reply #1 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.

Re: getDisplayModes on Linux with two monitors
« Reply #2 on: March 14, 2015, 23:06:25 »
Ohh I see.
Thanks for your quick reply!

Re: getDisplayModes on Linux with two monitors
« Reply #3 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?

*

Online spasi

  • *****
  • 2261
    • WebHotelier
Re: getDisplayModes on Linux with two monitors
« Reply #4 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.

Re: getDisplayModes on Linux with two monitors
« Reply #5 on: March 15, 2015, 21:45:12 »
Thanks for the info, and good luck!