Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-01-31 15:05:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-01-31 15:05:09 +0400
commitdbf54dacf7e3fabe6ccb0e36a1743c91ac445b28 (patch)
tree6bdfa69792ad78750fe5bee51a63e1fd70e3d2ff /intern/ghost/CMakeLists.txt
parent73f301c3a8a28dd25ea850a54d968fc6c4f2b83e (diff)
Add Xinerama support for GHOST_GetMainDisplayDimensions() so X11 works as it should (previously would include all monitors).
Now the active monitor size is used on startup. Currently the cursor position is checked for intersection with the monitor bounds to find the active screen.
Diffstat (limited to 'intern/ghost/CMakeLists.txt')
-rw-r--r--intern/ghost/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/intern/ghost/CMakeLists.txt b/intern/ghost/CMakeLists.txt
index ea09987c564..c6269d49b47 100644
--- a/intern/ghost/CMakeLists.txt
+++ b/intern/ghost/CMakeLists.txt
@@ -271,6 +271,16 @@ elseif(UNIX)
if(WITH_X11_XINPUT)
add_definitions(-DWITH_X11_XINPUT)
+ list(APPEND INC_SYS
+ ${X11_Xinput_INCLUDE_PATH}
+ )
+ endif()
+
+ if(WITH_X11_XINERAMA)
+ add_definitions(-DWITH_X11_XINERAMA)
+ list(APPEND INC_SYS
+ ${X11_Xinerama_INCLUDE_PATH}
+ )
endif()
elseif(WIN32)