Commit de8c3cb6 authored by Alistair Francis's avatar Alistair Francis

app: Use gtk_window_present for activation

GTK 3.24.7 has fixed the gtk_window_present() not working in Wayland
issue described here: gtk#624.

Since this has been fixed update our minimum GTK version and use the
present() function.
Signed-off-by: Alistair Francis's avatarAlistair Francis <alistair@alistair23.me>
parent 95ee205a
......@@ -249,10 +249,7 @@ impl App {
fn on_activate(&self) {
self.main_window.show();
// FIXME: present() dosen't work currently on wayland because of
// https://gitlab.gnome.org/GNOME/gtk/issues/624
self.main_window
.present_with_time((glib::get_monotonic_time() / 1000) as u32)
self.main_window.present()
}
fn on_shutdown(self) {
......
......@@ -11,7 +11,7 @@ dependency('glib-2.0', version: '>= 2.56')
dependency('gio-2.0', version: '>= 2.56')
dependency('cairo', version: '>= 1.16')
dependency('gdk-pixbuf-2.0')
dependency('gtk+-3.0', version: '>= 3.22')
dependency('gtk+-3.0', version: '>= 3.24.7')
dependency('libhandy-0.0', version: '>= 0.0.9')
dependency('gtksourceview-3.0', version: '>= 3.22')
dependency('gspell-1', version: '>= 1.8')
......
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