Fix dialogs not having keyboard focus when first shown.
Hack around the GearyApplication.present hack some more. See issue #43
This commit is contained in:
parent
065941884c
commit
70db35ddb1
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue