From 54e4644236b52989ba989c655a798f1ea7e61a5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Tue, 24 May 2022 18:21:40 +0200 Subject: [PATCH] app: Call window_present without timestamp GTK4 now handles this internally via xdg-activation. To make it work correctly we should stop using custom timestamp so default handlers will be used. --- src/app.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app.js b/src/app.js index 94b26685..4f9e572a 100644 --- a/src/app.js +++ b/src/app.js @@ -1,4 +1,4 @@ -const { Gio, GLib, GObject, Gtk } = imports.gi; +const { Gio, GObject, Gtk } = imports.gi; const { Widget } = imports.src.widget; const Debug = imports.src.debug; const FileOps = imports.src.fileOps; @@ -40,9 +40,7 @@ class ClapperApp extends Gtk.Application if(!this.doneFirstActivate) this._onFirstActivate(); - this.active_window.present_with_time( - Math.floor(GLib.get_monotonic_time() / 1000) - ); + this.active_window.present(); } async _openFilesAsync(files)