diff options
Diffstat (limited to 'accounts/gkleen@sif/niri')
-rw-r--r-- | accounts/gkleen@sif/niri/default.nix | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/accounts/gkleen@sif/niri/default.nix b/accounts/gkleen@sif/niri/default.nix index b5347d6f..0e25fc95 100644 --- a/accounts/gkleen@sif/niri/default.nix +++ b/accounts/gkleen@sif/niri/default.nix | |||
@@ -273,8 +273,6 @@ in { | |||
273 | workspaces = list() | 273 | workspaces = list() |
274 | 274 | ||
275 | def focus_workspace(output, workspace): | 275 | def focus_workspace(output, workspace): |
276 | global workspace_history, history_lock | ||
277 | |||
278 | with history_lock: | 276 | with history_lock: |
279 | workspace_history[output] = [workspace] + [ws for ws in workspace_history[output] if ws != workspace] # noqa: E501 | 277 | workspace_history[output] = [workspace] + [ws for ws in workspace_history[output] if ws != workspace] # noqa: E501 |
280 | print(json.dumps(workspace_history), file=sys.stderr) | 278 | print(json.dumps(workspace_history), file=sys.stderr) |
@@ -299,8 +297,6 @@ in { | |||
299 | 297 | ||
300 | class RequestHandler(StreamRequestHandler): | 298 | class RequestHandler(StreamRequestHandler): |
301 | def handle(self): | 299 | def handle(self): |
302 | global workspace_history, history_lock | ||
303 | |||
304 | with detaching(TextIOWrapper(self.wfile, encoding='utf-8', write_through=True)) as out: # noqa: E501 | 300 | with detaching(TextIOWrapper(self.wfile, encoding='utf-8', write_through=True)) as out: # noqa: E501 |
305 | with history_lock: | 301 | with history_lock: |
306 | json.dump(workspace_history, out) | 302 | json.dump(workspace_history, out) |