Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 0 timestamp #1857 #1950 #2102

Merged
merged 1 commit into from
Jun 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions guake/guake_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,15 +582,17 @@ def show_hide(self, *args):
if not self.window.get_property("visible"):
log.debug("Showing the terminal")
self.show()
self.window.get_window().focus(0)
server_time = get_server_time(self.window)
self.window.get_window().focus(server_time)
self.set_terminal_focus()
return

should_refocus = self.settings.general.get_boolean("window-refocus")
has_focus = self.window.get_window().get_state() & Gdk.WindowState.FOCUSED
if should_refocus and not has_focus:
log.debug("Refocussing the terminal")
self.window.get_window().focus(0)
server_time = get_server_time(self.window)
self.window.get_window().focus(server_time)
self.set_terminal_focus()
else:
log.debug("Hiding the terminal")
Expand Down