Skip to content

Commit 5c99cab

Browse files
c31ioDavidy22
authored andcommittedJun 20, 2022
Fix 0 timestamp Guake#1857 Guake#1950
1 parent 2852973 commit 5c99cab

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎guake/guake_app.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -582,15 +582,17 @@ def show_hide(self, *args):
582582
if not self.window.get_property("visible"):
583583
log.debug("Showing the terminal")
584584
self.show()
585-
self.window.get_window().focus(0)
585+
server_time = get_server_time(self.window)
586+
self.window.get_window().focus(server_time)
586587
self.set_terminal_focus()
587588
return
588589

589590
should_refocus = self.settings.general.get_boolean("window-refocus")
590591
has_focus = self.window.get_window().get_state() & Gdk.WindowState.FOCUSED
591592
if should_refocus and not has_focus:
592593
log.debug("Refocussing the terminal")
593-
self.window.get_window().focus(0)
594+
server_time = get_server_time(self.window)
595+
self.window.get_window().focus(server_time)
594596
self.set_terminal_focus()
595597
else:
596598
log.debug("Hiding the terminal")

0 commit comments

Comments
 (0)
Please sign in to comment.