diff --git a/pyprland/plugins/scratchpads.py b/pyprland/plugins/scratchpads.py index 285041b..c56aa69 100644 --- a/pyprland/plugins/scratchpads.py +++ b/pyprland/plugins/scratchpads.py @@ -250,10 +250,10 @@ def set(self, scratch: Scratch, name=None, pid=None, addr=None): if name is not None: d = self._by_name v = name - if pid is not None: + elif pid is not None: d = self._by_pid v = pid - if addr is not None: + elif addr is not None: d = self._by_addr v = addr d[v] = scratch