mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
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.
This commit is contained in:
parent
fc25e4944e
commit
80b2a21125
1 changed files with 2 additions and 1 deletions
|
|
@ -342,7 +342,6 @@ int main(int argc, char **argv) {
|
||||||
log_kernel();
|
log_kernel();
|
||||||
log_distro();
|
log_distro();
|
||||||
log_env();
|
log_env();
|
||||||
detect_proprietary(allow_unsupported_gpu);
|
|
||||||
|
|
||||||
if (optind < argc) { // Behave as IPC client
|
if (optind < argc) { // Behave as IPC client
|
||||||
if (optind != 1) {
|
if (optind != 1) {
|
||||||
|
|
@ -369,6 +368,8 @@ int main(int argc, char **argv) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
detect_proprietary(allow_unsupported_gpu);
|
||||||
|
|
||||||
if (!server_privileged_prepare(&server)) {
|
if (!server_privileged_prepare(&server)) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue