Skip to content

Commit

Permalink
Link to upstream GTK+ bugs about present() not working
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Sep 14, 2017
1 parent d2a63bf commit 2fd0f6a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/gtimelog/main.py
Expand Up @@ -360,10 +360,12 @@ def do_activate(self):
if window is not None:
if not window.is_active():
# If I don't hide the window before calling present(), GNOME
# Shell ignores the presentation request (yay focus stealing
# prevention, I guess?). If I do hide the window, present()
# works, but -- under Wayland -- forgets the window position
# and jumps to the top-left corner of the 1st screen :(
# Shell (on Wayland) ignores the presentation request:
# https://bugzilla.gnome.org/show_bug.cgi?id=756202 and
# https://bugzilla.gnome.org/show_bug.cgi?id=766284
# If I do hide the window, present() works, but -- again, under
# Wayland -- forgets the window position and jumps to the
# top-left corner of the 1st screen :(
window.hide()
window.present()
return
Expand Down

0 comments on commit 2fd0f6a

Please sign in to comment.