closeDialog: Fix scale of dialog for x11 clients in Wayland sessions
We missed this case in b6e57a5ae8
,
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
This commit is contained in:
parent
a7b0e96304
commit
523eea4527
@ -47,11 +47,11 @@ var CloseDialog = GObject.registerClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
_updateScale() {
|
_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
|
// applies the geometry scale factor to its children itself, see
|
||||||
// meta_window_actor_set_geometry_scale()), make sure we don't apply
|
// meta_window_actor_set_geometry_scale()), make sure we don't apply
|
||||||
// the factor twice in the end.
|
// the factor twice in the end.
|
||||||
if (!Meta.is_wayland_compositor())
|
if (this._window.get_client_type() !== Meta.WindowClientType.WAYLAND)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
let { scaleFactor } = St.ThemeContext.get_for_stage(global.stage);
|
let { scaleFactor } = St.ThemeContext.get_for_stage(global.stage);
|
||||||
|
Loading…
Reference in New Issue
Block a user