idle_inhibitor: apply clang-format

This commit is contained in:
Alex
2026-07-03 23:58:46 +02:00
parent 517f45b01a
commit 66ecba4e99
+9 -5
View File
@@ -208,7 +208,8 @@ void waybar::modules::IdleInhibitor::setupIdleNotification() {
auto* wl_seat = gdk_wayland_seat_get_wl_seat(gdk_seat); auto* wl_seat = gdk_wayland_seat_get_wl_seat(gdk_seat);
// Check protocol version to determine which function to use // 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 {})", spdlog::debug("idle_inhibitor: creating notification with timeout {} ms (protocol version {})",
idle_timeout_ms_, version); idle_timeout_ms_, version);
@@ -222,10 +223,13 @@ void waybar::modules::IdleInhibitor::setupIdleNotification() {
} else { } else {
// Version 1: Fall back to get_idle_notification // Version 1: Fall back to get_idle_notification
// WARNING: This respects idle inhibitors, so it won't fire while inhibitor is active // 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, " spdlog::warn(
"wait-for-activity may not work correctly", version); "idle_inhibitor: ext-idle-notifier-v1 version {} doesn't support "
idle_notification_ = ext_idle_notifier_v1_get_idle_notification( "get_input_idle_notification, "
client->idle_notifier, idle_timeout_ms_, wl_seat); "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) { if (idle_notification_ == nullptr) {