Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent window sizing and position in dual-monitor setups under Wayland #1820

Closed
bitscher opened this issue Dec 21, 2020 · 0 comments
Closed

Comments

@bitscher
Copy link
Contributor

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.

guake/guake/main.py

Lines 57 to 67 in 9c21327

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)
image

Monitor 1 (1440p)
image

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant