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:
Emilio Cobos Álvarez 2022-04-08 13:28:07 +00:00
Родитель a9a85f3eca
Коммит 548997b639
1 изменённых файлов: 2 добавлений и 6 удалений

Просмотреть файл

@ -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;