Skip to content
Snippets Groups Projects
Commit 3a7e7f18 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

Qt: On window quit redraw tree with delay

parent 0c08bab0
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment