mirror of
https://github.com/swaywm/sway.git
synced 2026-02-15 22:05:38 -05:00
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:
parent
b081eba05d
commit
992d201512
3 changed files with 27 additions and 16 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue