Skip to content

Commit

Permalink
modalDialog.js: Fix sync call in x11.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwebster committed Nov 10, 2023
1 parent 5a73d40 commit c279ee0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/ui/modalDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Pango = imports.gi.Pango;
const Meta = imports.gi.Meta;
const Gdk = imports.gi.Gdk;

const Params = imports.misc.params;
const Util = imports.misc.util;
Expand Down Expand Up @@ -358,7 +359,7 @@ ModalDialog.prototype = {
Main.popModal(this._group, timestamp);

if (!Meta.is_wayland_compositor()) {
Gdk.Screen.get_default().sync();
Gdk.Display.get_default().sync();
}

this._hasModal = false;
Expand Down

0 comments on commit c279ee0

Please sign in to comment.