sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit bb7bb3676deead149c66fbf74b55d3bb4f9d69b5
parent fc25e4944efdc5bc7e33a81180908927dba93ee6
Author: Eric Engestrom <eric@engestrom.ch>
Date:   Sat, 13 Nov 2021 15:25:58 +0000

sway: allow IPCs on proprietary drivers

Proprietary drivers require --unsupported-gpu to be allowed, and IPCs
require no option to be passed.

The only way to satisfy both is to run IPCs before checking for
proprietary drivers.

Diffstat:
Msway/main.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sway/main.c b/sway/main.c @@ -342,7 +342,6 @@ int main(int argc, char **argv) { log_kernel(); log_distro(); log_env(); - detect_proprietary(allow_unsupported_gpu); if (optind < argc) { // Behave as IPC client if (optind != 1) { @@ -369,6 +368,8 @@ int main(int argc, char **argv) { return 0; } + detect_proprietary(allow_unsupported_gpu); + if (!server_privileged_prepare(&server)) { return 1; }