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.
This commit is contained in:
Rafał Dzięgiel
2022-05-24 18:21:40 +02:00
parent 3c248250f3
commit 54e4644236

View File

@@ -1,4 +1,4 @@
const { Gio, GLib, GObject, Gtk } = imports.gi; const { Gio, GObject, Gtk } = imports.gi;
const { Widget } = imports.src.widget; const { Widget } = imports.src.widget;
const Debug = imports.src.debug; const Debug = imports.src.debug;
const FileOps = imports.src.fileOps; const FileOps = imports.src.fileOps;
@@ -40,9 +40,7 @@ class ClapperApp extends Gtk.Application
if(!this.doneFirstActivate) if(!this.doneFirstActivate)
this._onFirstActivate(); this._onFirstActivate();
this.active_window.present_with_time( this.active_window.present();
Math.floor(GLib.get_monotonic_time() / 1000)
);
} }
async _openFilesAsync(files) async _openFilesAsync(files)