Commit 1f6f223e authored by Michael Gratton's avatar Michael Gratton 🤞

Merge branch 'wip/43-dialogs-not-focused' into 'master'

Fix dialogs not being focused when first shown

Closes #43

See merge request !32
parents 4860d84b 70db35dd
Pipeline #22069 passed with stage
in 10 minutes and 55 seconds
......@@ -225,8 +225,11 @@ public class GearyApplication : Gtk.Application {
// Use present_with_time and a synthesised time so the present
// actually works, as a work around for Bug 766284
// <https://bugzilla.gnome.org/show_bug.cgi?id=766284>.
// Subtract 10ms from the current time to avoid the main
// window stealing the focus when presented just before
// showing a dialog (issue #43).
this.controller.main_window.present_with_time(
(uint32) (get_monotonic_time() / 1000)
(uint32) (get_monotonic_time() / 1000) - 10
);
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment