From 9fff419b2dc7cb392d489394513c97a4e3e5b5e3 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 12 Jul 2021 08:11:48 +0200 Subject: [PATCH] i3-companion: remove skip code Most of the time, we don't skip the update. --- bin/i3-companion | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/bin/i3-companion b/bin/i3-companion index 73dd3b7..0311374 100755 --- a/bin/i3-companion +++ b/bin/i3-companion @@ -453,17 +453,6 @@ async def network_manager_notifications(i3, event, path, state, reason): async def network_manager_status(i3, event, *args): """Compute network manager status.""" ofnm = "org.freedesktop.NetworkManager" - # Skip AP updates when they are not about the current AccessPoint - # or not about Strength. Most of the time, updates are about that. - if ( - isinstance(event, DBusSignal) - and event.interface == f"{ofnm}.AccessPoint" - ): - path, props = args - if getattr(network_manager_status, "active_ap", None) != path: - return - if not "Strength" in props: - return # Dampen updates running = getattr(network_manager_status, "running", None)