You are not logged in.

#1 2018-07-05 20:43:11

tsadowski
Member
Registered: 2018-07-05
Posts: 5

Qt under Gnome Wayland and XWayland

Hi,

I am trying to run Qt apps (freecad and digicam) under Gnome. This is usable with XWayland but I would like to use Wayland directly. At first I thought I had no window decorations but the window is simply drawn too high up and the window decoration is hidden by the Gnome header bar. It turned out that the screen information is wrong as reported to Qt.

qtdiag-qt5 under xcb:
Screens: 1, High DPI scaling: inactive
# 0 "XWAYLAND0" Depth: 24 Primary: yes
  Manufacturer:
  Model:
  Serial number:
  Geometry: 2128x1197+0+0 Available: 2128x1170+0+27
  Physical size: 290x170 mm  Refresh: 59 Hz Power state: 0
  Physical DPI: 186.383,178.846 Logical DPI: 96,96 Subpixel_None
  DevicePixelRatio: 1 Pixel density: 2
  Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0

qtdiag-qt5 under wayland-egl:

Screens: 1, High DPI scaling: inactive
# 0 "Screen4" Depth: 32 Primary: yes
  Manufacturer: LGD
  Model: 0x04b4
  Serial number:
  Geometry: 1064x599+0+0 Available: 1064x599+0+0
  Physical size: 290x170 mm  Refresh: 59.956 Hz Power state: 0
  Physical DPI: 93.1917,89.4976 Logical DPI: 93.1917,89.4976 Subpixel_None
  DevicePixelRatio: 2 Pixel density: 1
  Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0

The geometry values are a bit odd because I am using 150% scale in Gnome.

Does anyone know, why the screen info is different and how I can force it to be the same?

Cheers,
Torsten

Offline

Board footer

Powered by FluxBB