mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Format change again.
This commit is contained in:
@@ -46,9 +46,8 @@ SwayOutputBackend::SwayOutputBackend(std::string_view compositorHint) {
|
||||
const bool hinted = StringUtils::containsInsensitive(compositorHint, "sway");
|
||||
const char* swaySocket = std::getenv("SWAYSOCK");
|
||||
const char* i3Socket = std::getenv("I3SOCK");
|
||||
m_enabled = hinted ||
|
||||
(swaySocket != nullptr && swaySocket[0] != '\0') ||
|
||||
(i3Socket != nullptr && i3Socket[0] != '\0');
|
||||
m_enabled =
|
||||
hinted || (swaySocket != nullptr && swaySocket[0] != '\0') || (i3Socket != nullptr && i3Socket[0] != '\0');
|
||||
}
|
||||
|
||||
bool SwayOutputBackend::isAvailable() const noexcept { return m_enabled; }
|
||||
|
||||
Reference in New Issue
Block a user