From 4c8c570c7b941f5800d422937c2fa315451d710a Mon Sep 17 00:00:00 2001 From: fdev31 Date: Mon, 16 Oct 2023 00:15:10 +0200 Subject: [PATCH] Don't assume clients will be moved as expected, closes #17 --- pyprland/plugins/scratchpads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyprland/plugins/scratchpads.py b/pyprland/plugins/scratchpads.py index f05d6de..bf2a4d7 100644 --- a/pyprland/plugins/scratchpads.py +++ b/pyprland/plugins/scratchpads.py @@ -248,7 +248,7 @@ class Extension(Plugin): # pylint: disable=missing-class-docstring async def event_openwindow(self, params) -> None: "open windows hook" addr, wrkspc, _kls, _title = params.split(",", 3) - if wrkspc.startswith("special"): + if self._respawned_scratches: item = self.scratches_by_address.get(addr) if not item and self._respawned_scratches: # hack for windows which aren't related to the process (see #8)