tiny code simplification

This commit is contained in:
fdev31 2023-07-30 00:14:56 +02:00
parent ca11f373d5
commit d48a3f4154

View file

@ -26,8 +26,7 @@ class Extension(Plugin):
def exposed_clients(self): def exposed_clients(self):
if self.config.get("include_special", False): if self.config.get("include_special", False):
return self.exposed return self.exposed
else: return [c for c in self.exposed if c["workspace"]["id"] > 0]
return [c for c in self.exposed if c["workspace"]["id"] > 0]
async def run_expose(self): async def run_expose(self):
"""Expose every client on the active workspace. If expose is active restores everything and move to the focused window""" """Expose every client on the active workspace. If expose is active restores everything and move to the focused window"""