aboutsummaryrefslogtreecommitdiff
path: root/platform/x11/detect.py
diff options
context:
space:
mode:
authorhurikhan2015-01-13 21:01:24 +0800
committerhurikhan2015-01-13 21:01:24 +0800
commitf55c0e928580de63af55ac22f045bb4380a1df2e (patch)
treec8bb97cb6d4a7d0cc56ed8463811f13a69e8601d /platform/x11/detect.py
parentce7c7a862ebe37fada7708c342c07d70fa80465a (diff)
downloadgodot-f55c0e928580de63af55ac22f045bb4380a1df2e.tar.gz
godot-f55c0e928580de63af55ac22f045bb4380a1df2e.tar.zst
godot-f55c0e928580de63af55ac22f045bb4380a1df2e.zip
Using Xinerama extension for getting screen info
Diffstat (limited to 'platform/x11/detect.py')
-rw-r--r--platform/x11/detect.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py
index 954e5270e..1eb615893 100644
--- a/platform/x11/detect.py
+++ b/platform/x11/detect.py
@@ -38,6 +38,11 @@ def can_build():
if (x11_error):
print("xcursor not found.. x11 disabled.")
return False
+
+ x11_error=os.system("pkg-config xinerama --modversion > /dev/null ")
+ if (x11_error):
+ print("xinerama not found.. x11 disabled.")
+ return False
return True # X11 enabled
@@ -151,4 +156,5 @@ def configure(env):
if(env["experimental_wm_api"]=="yes"):
env.Append(CPPFLAGS=['-DEXPERIMENTAL_WM_API'])
+ env.ParseConfig('pkg-config xinerama --cflags --libs')