diff options
author | Jonas Dreßler <verdre@v0yd.nl> | 2019-12-04 21:23:20 +0100 |
---|---|---|
committer | Florian Müllner <fmuellner@gnome.org> | 2019-12-04 23:41:02 +0100 |
commit | 523eea45270ad44dea693a25163a7992ad0338a7 (patch) | |
tree | f31c952a210585c40dd9205b557b0bf680f43d16 | |
parent | a7b0e96304de592c9632f0790c5bb6b87ad5b894 (diff) | |
download | gnome-shell-523eea45270ad44dea693a25163a7992ad0338a7.tar.gz |
closeDialog: Fix scale of dialog for x11 clients in Wayland sessions
We missed this case in b6e57a5ae8e3871161e2bdcc44e46af1cc56b2f7,
XWayland clients obviously don't use MetaWindowWayland and thus they
don't apply the double scaling that commit was meant to fix.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/884
-rw-r--r-- | js/ui/closeDialog.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/ui/closeDialog.js b/js/ui/closeDialog.js index 5cbeb9c5c..b943e85bf 100644 --- a/js/ui/closeDialog.js +++ b/js/ui/closeDialog.js @@ -47,11 +47,11 @@ var CloseDialog = GObject.registerClass({ } _updateScale() { - // Since this is a child of MetaWindowActor (which, in Wayland sessions, + // Since this is a child of MetaWindowActor (which, for Wayland clients, // applies the geometry scale factor to its children itself, see // meta_window_actor_set_geometry_scale()), make sure we don't apply // the factor twice in the end. - if (!Meta.is_wayland_compositor()) + if (this._window.get_client_type() !== Meta.WindowClientType.WAYLAND) return; let { scaleFactor } = St.ThemeContext.get_for_stage(global.stage); |