Implemented display iteration for x11. Added attributes and queries for physical size, name and logical position. Updated test executable.
diff --git a/src/internal.h b/src/internal.h
index c8bdb9a..e757aae 100644
--- a/src/internal.h
+++ b/src/internal.h
@@ -76,6 +76,7 @@
typedef struct _GLFWfbconfig _GLFWfbconfig;
typedef struct _GLFWwindow _GLFWwindow;
typedef struct _GLFWlibrary _GLFWlibrary;
+typedef struct _GLFWdisplay _GLFWdisplay;
//------------------------------------------------------------------------
@@ -216,6 +217,24 @@
//------------------------------------------------------------------------
+// Display structure
+//------------------------------------------------------------------------
+struct _GLFWdisplay
+{
+ struct _GLFWdisplay* next;
+
+ void* userPointer;
+
+ char deviceName[GLFW_DISPLAY_PARAM_S_NAME_LEN+1];
+ // physical dimensions in millimeters.
+ int physicalWidth;
+ int physicalHeight;
+ // logical orientation of the screen on the desktop
+ int screenXPosition;
+ int screenYPosition;
+};
+
+//------------------------------------------------------------------------
// Library global data
//------------------------------------------------------------------------
struct _GLFWlibrary
@@ -225,6 +244,8 @@
_GLFWwindow* windowListHead;
_GLFWwindow* currentWindow;
_GLFWwindow* activeWindow;
+ _GLFWwindow* cursorLockWindow;
+ _GLFWdisplay* displayListHead;
GLFWwindowsizefun windowSizeCallback;
GLFWwindowclosefun windowCloseCallback;