Describe the bug
Inconsistent window sizing between monitors in dual-monitor setup with different resolutions on Gnome 3.38.2 Wayland on Fedora 33.
Modifying the environment variable before calling guake by prepending env GDK_BACKEND=x11 fixes the issue which points to an issue with the existing attempt at overriding the value of GDK_BACKEND in the code.
|
def main(): |
|
"""Parses the command line parameters and decide if dbus methods |
|
should be called or not. If there is already a guake instance |
|
running it will be used and a True value will be returned, |
|
otherwise, false will be returned. |
|
""" |
|
# Force to xterm-256 colors for compatibility with some old command line programs |
|
os.environ["TERM"] = "xterm-256color" |
|
|
|
# Force use X11 backend underwayland |
|
os.environ["GDK_BACKEND"] = "x11" |
Expected behavior
Window size should be correct on both monitors.
Actual behavior
Window size is always the same regardless of the resolution of the monitor it's being displayed on. The position is also offset if monitors are not horizontally aligned from the top.
Monitor 0 (1080p)

Monitor 1 (1440p)

To Reproduce
- On a dual monitor setup with different monitor resolutions
- Run Gnome-shell on Wayland
- Open the terminal on monitor 1
- Close the terminal, and open it on monitor 2
$ guake --support
Guake Version: 3.6.3
Vte Version: 0.62.1
Vte Runtime Version: 0.62.1
GTK+ Version: 3.24.24
GDK Backend: GdkX11.X11Display
Desktop Session: gnome
Display: :0
RGBA visual: True
Composited: True
- Monitor: 0 - XWAYLAND0
- Geometry: 1920 x 1080 at 0, 239
- Size: 530 x 300 mm²
- Primary: True
- Refresh rate: 143.88 Hz
- Subpixel layout: unknown
- Monitor: 1 - XWAYLAND1
- Geometry: 2560 x 1440 at 1920, 0
- Size: 600 x 340 mm²
- Primary: False
- Refresh rate: 143.91 Hz
- Subpixel layout: unknown
Describe the bug
Inconsistent window sizing between monitors in dual-monitor setup with different resolutions on Gnome 3.38.2 Wayland on Fedora 33.
Modifying the environment variable before calling guake by prepending
env GDK_BACKEND=x11fixes the issue which points to an issue with the existing attempt at overriding the value ofGDK_BACKENDin the code.guake/guake/main.py
Lines 57 to 67 in 9c21327
Expected behavior
Window size should be correct on both monitors.
Actual behavior
Window size is always the same regardless of the resolution of the monitor it's being displayed on. The position is also offset if monitors are not horizontally aligned from the top.
Monitor 0 (1080p)

Monitor 1 (1440p)

To Reproduce
$ guake --support
Guake Version: 3.6.3
Vte Version: 0.62.1
Vte Runtime Version: 0.62.1
GTK+ Version: 3.24.24
GDK Backend: GdkX11.X11Display
Desktop Session: gnome
Display: :0
RGBA visual: True
Composited: True