Skip to content

Commit dd0b1c0

Browse files
committed
add a delay to ensure states are settled on monitor removed
1 parent aee7b94 commit dd0b1c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyprland/plugins/scratchpads/events.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ async def event_monitorremoved(self, monitor_name: str) -> None:
102102
Args:
103103
monitor_name: The monitor name
104104
"""
105+
await asyncio.sleep(1)
105106
for scratch in self.scratches.values():
106107
if scratch.monitor == monitor_name:
107108
try:

0 commit comments

Comments
 (0)