aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2023-12-12 15:25:10 +0100
committerLibravatar Simon Zeni <simon@bl4ckb0ne.ca>2023-12-12 10:04:14 -0500
commitff07eab85b5c6b728ad3cc99d02e9f2ae8b9854f (patch)
treefc4aa760eafe3a14c37fd11d8743c3b54e31de9c /include
parentDrop fglrx detection (diff)
downloadsway-ff07eab85b5c6b728ad3cc99d02e9f2ae8b9854f.tar.gz
sway-ff07eab85b5c6b728ad3cc99d02e9f2ae8b9854f.tar.zst
sway-ff07eab85b5c6b728ad3cc99d02e9f2ae8b9854f.zip
Detect Nvidia proprietary driver via drmGetVersion()
This is less punishing for users with the Nvidia driver loaded but not used by Sway (e.g. for CUDA).
Diffstat (limited to 'include')
-rw-r--r--include/sway/server.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sway/server.h b/include/sway/server.h
index 1b3166ce..bf195706 100644
--- a/include/sway/server.h
+++ b/include/sway/server.h
@@ -163,6 +163,8 @@ struct sway_debug {
163 163
164extern struct sway_debug debug; 164extern struct sway_debug debug;
165 165
166extern bool allow_unsupported_gpu;
167
166bool server_init(struct sway_server *server); 168bool server_init(struct sway_server *server);
167void server_fini(struct sway_server *server); 169void server_fini(struct sway_server *server);
168bool server_start(struct sway_server *server); 170bool server_start(struct sway_server *server);