idle_inhibitor: apply clang-format
This commit is contained in:
@@ -208,7 +208,8 @@ void waybar::modules::IdleInhibitor::setupIdleNotification() {
|
||||
auto* wl_seat = gdk_wayland_seat_get_wl_seat(gdk_seat);
|
||||
|
||||
// Check protocol version to determine which function to use
|
||||
uint32_t version = wl_proxy_get_version(reinterpret_cast<struct wl_proxy*>(client->idle_notifier));
|
||||
uint32_t version =
|
||||
wl_proxy_get_version(reinterpret_cast<struct wl_proxy*>(client->idle_notifier));
|
||||
|
||||
spdlog::debug("idle_inhibitor: creating notification with timeout {} ms (protocol version {})",
|
||||
idle_timeout_ms_, version);
|
||||
@@ -222,10 +223,13 @@ void waybar::modules::IdleInhibitor::setupIdleNotification() {
|
||||
} else {
|
||||
// Version 1: Fall back to get_idle_notification
|
||||
// WARNING: This respects idle inhibitors, so it won't fire while inhibitor is active
|
||||
spdlog::warn("idle_inhibitor: ext-idle-notifier-v1 version {} doesn't support get_input_idle_notification, "
|
||||
"wait-for-activity may not work correctly", version);
|
||||
idle_notification_ = ext_idle_notifier_v1_get_idle_notification(
|
||||
client->idle_notifier, idle_timeout_ms_, wl_seat);
|
||||
spdlog::warn(
|
||||
"idle_inhibitor: ext-idle-notifier-v1 version {} doesn't support "
|
||||
"get_input_idle_notification, "
|
||||
"wait-for-activity may not work correctly",
|
||||
version);
|
||||
idle_notification_ = ext_idle_notifier_v1_get_idle_notification(client->idle_notifier,
|
||||
idle_timeout_ms_, wl_seat);
|
||||
}
|
||||
|
||||
if (idle_notification_ == nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user