diff --git a/woman/qt.py b/woman/qt.py index 2cb0fbf90ade27a14df41af7b599b975f550c30b..b0e9d4b271238b5220849fd05d2e81749f81fcf8 100755 --- a/woman/qt.py +++ b/woman/qt.py @@ -912,6 +912,11 @@ def qt_main(): for w in self._workspaces.values(): w._tree.find(self.find_regex) + @QtJobDecorator + async def wait_and_load_i3_tree(self, time_ms): + await qt_job_wait_ms(time_ms) + self.load_i3_tree() + def set_screenshot_size(self, val): self.screenshot_size = val for i in self._workspaces.values(): @@ -1258,6 +1263,7 @@ def qt_main(): if key == ord("Y") and mod in [0, SHIFT]: nd.quit_windows() self.load_i3_tree() + self.wait_and_load_i3_tree(100) else: raise NoSutchKey(key, mod) elif mod == 0 and key == ord('K'): @@ -1265,6 +1271,7 @@ def qt_main(): if key == ord("Y") and mod in [SHIFT]: nd.quit_windows(force=True) self.load_i3_tree() + self.wait_and_load_i3_tree(100) else: raise NoSutchKey(key, mod) else: