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).
This commit is contained in:
Simon Ser 2023-12-12 15:25:10 +01:00 committed by Simon Zeni
parent b81c4da494
commit ff07eab85b
4 changed files with 36 additions and 30 deletions

View file

@ -163,6 +163,8 @@ struct sway_debug {
extern struct sway_debug debug;
extern bool allow_unsupported_gpu;
bool server_init(struct sway_server *server);
void server_fini(struct sway_server *server);
bool server_start(struct sway_server *server);