LWJGL/lwjgl — pull request #26 by tfg13 (2013-04-27 20:28:25+00:00)
Title: fix: correctly parse current config with xrandr 1.4

This fixes http://lwjgl.org/forum/index.php/topic,4920.0.html

Brief summary:
Xrandr 1.4 changed the output format to include information about which screen is the primary (relevant change in xrandr: http://cgit.freedesktop.org/xorg/app/xrandr/commit/?id=094b40e89707828df2bb7b204a97eed256a3c3fd)

This change breaks the parsing logic in XrandR.java. As a result, getConfiguration() returns an empty array.
When closing (windowed) lwjgl applications, the system assumes the display mode was changed and therefore resets it, causing the screen to turn black for a short moment.

According to xrandr.c "primary" is the only possible keyword here, so this change simply ignores it, if present.