From 3574c5246a29dc2ad5b9dbc629e4e7647fbc41bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 16 Feb 2024 23:58:12 +0100 Subject: [PATCH] modalDialog: Stop passing timestamp to Main.pushModal() Since the move to Clutter.grab() in commit f4cae72d17af6, the parameter doesn't do anything anymore. Part-of: --- js/ui/modalDialog.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/js/ui/modalDialog.js b/js/ui/modalDialog.js index eda38b3af..58e894fce 100644 --- a/js/ui/modalDialog.js +++ b/js/ui/modalDialog.js @@ -178,7 +178,7 @@ export const ModalDialog = GObject.registerClass({ if (this.state === State.OPENED || this.state === State.OPENING) return true; - if (!this.pushModal(timestamp)) + if (!this.pushModal()) return false; this._fadeOpen(onPrimary); @@ -234,14 +234,11 @@ export const ModalDialog = GObject.registerClass({ this.backgroundStack.set_child_above_sibling(this._eventBlocker, null); } - pushModal(timestamp) { + pushModal() { if (this._hasModal) return true; - let params = {actionMode: this._actionMode}; - if (timestamp) - params['timestamp'] = timestamp; - let grab = Main.pushModal(this, params); + const grab = Main.pushModal(this, {actionMode: this._actionMode}); if (grab.get_seat_state() !== Clutter.GrabState.ALL) { Main.popModal(grab); return false;