sway: change unsupported GPU message to swaynag

This commit shows a swaynag message when an unsupported GPU is detected
which must be acknowledged by users. It also adds an environment
variable (`SWAY_UNSUPPORTED_GPU`) which may be used instead of the
`--unsupported-gpu` argument.

The `static` storage class for flag variables in main has also been
removed, as this should have no effect on the program.

Resolves: #8999
This commit is contained in:
Calvin Lee 2026-02-03 10:26:50 +00:00 committed by Kenny Levinsen
parent b081eba05d
commit 992d201512
3 changed files with 27 additions and 16 deletions

View file

@ -160,7 +160,7 @@ struct sway_debug {
extern struct sway_debug debug;
extern bool allow_unsupported_gpu;
extern bool unsupported_gpu_detected;
void sway_terminate(int exit_code);