зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1763184 - Remove unreachable special-case in ScreenGetterGTK. r=stransky
Gnome on Wayland uses ScreenGetterWayland, so the special-case can be removed. Depends on D142963 Differential Revision: https://phabricator.services.mozilla.com/D142964
This commit is contained in:
Родитель
a9a85f3eca
Коммит
548997b639
|
@ -144,12 +144,8 @@ static already_AddRefed<Screen> MakeScreenGtk(GdkScreen* aScreen,
|
|||
|
||||
// gdk_screen_get_monitor_geometry / workarea returns application pixels
|
||||
// (desktop pixels), so we need to convert it to device pixels with
|
||||
// gdkScaleFactor on X11.
|
||||
// GNOME/Wayland reports scales differently (Bug 1732682).
|
||||
gint geometryScaleFactor = 1;
|
||||
if (GdkIsX11Display() || (GdkIsWaylandDisplay() && !IsGNOMECompositor())) {
|
||||
geometryScaleFactor = gdkScaleFactor;
|
||||
}
|
||||
// gdkScaleFactor.
|
||||
gint geometryScaleFactor = gdkScaleFactor;
|
||||
|
||||
LayoutDeviceIntRect rect;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче