summaryrefslogtreecommitdiff
path: root/sci-chemistry/xcrysden/files/xcrysden-1.6.2-accumulation-buffer.patch
blob: d3a6abd0ead1d2f0f0c1307241633434d0d7c80c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Disable OpenGL accumulation buffer when running under XWayland

diff --git a/Tcl/custom-definitions b/Tcl/custom-definitions
index 5267760..2635452 100644
--- a/Tcl/custom-definitions
+++ b/Tcl/custom-definitions
@@ -18,7 +18,12 @@
 # $XCRYSDEN_TOPDIR/Tcl/toglOpt.tcl
 # ------------------------------------------------------------------------
 
-#set toglOpt(accum)  false 
+if {[info exists ::env(XDG_SESSION_TYPE)] &&
+    $::env(XDG_SESSION_TYPE) eq "wayland"} {
+    set toglOpt(accum) false
+} elseif {[info exists ::env(WAYLAND_DISPLAY)]} {
+    set toglOpt(accum) false
+}
 #set toglOpt(stereo) none