summaryrefslogtreecommitdiffstats
path: root/platform/x11/detect.py
diff options
context:
space:
mode:
authorHein-Pieter van Braam <hp@tmm.cx>2018-05-08 16:44:35 +0200
committerGitHub <noreply@github.com>2018-05-08 16:44:35 +0200
commite668757aa9ff4ccd3a90b1f402aba8a424b4c11d (patch)
treee569a46b16008d39e541d484fed95ad58ee4068a /platform/x11/detect.py
parentaacd7f012ebcfb7f8023ebecba2e003fcd018e98 (diff)
parentddae098deec89d67228a74623ebe7f5db39f425b (diff)
downloadredot-engine-e668757aa9ff4ccd3a90b1f402aba8a424b4c11d.tar.gz
Merge pull request #14622 from bruvzg/non-rectangular-windows
Experimental support for windows with per-pixel transparency.
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 5820a926e9..ad2620c9f5 100644
--- a/platform/x11/detect.py
+++ b/platform/x11/detect.py
@@ -42,6 +42,11 @@ def can_build():
print("xrandr not found.. x11 disabled.")
return False
+ x11_error = os.system("pkg-config xrender --modversion > /dev/null ")
+ if (x11_error):
+ print("xrender not found.. x11 disabled.")
+ return False
+
return True
def get_opts():
@@ -141,6 +146,7 @@ def configure(env):
env.ParseConfig('pkg-config xcursor --cflags --libs')
env.ParseConfig('pkg-config xinerama --cflags --libs')
env.ParseConfig('pkg-config xrandr --cflags --libs')
+ env.ParseConfig('pkg-config xrender --cflags --libs')
if (env['touch']):
x11_error = os.system("pkg-config xi --modversion > /dev/null ")