Skip to content

Wayland Protocol Error (Error 71) on startup when window is maximized (RDP/Weston backend) #1428

@alcio313

Description

@alcio313

Windows build number:

26200.8037

Your Distribution version:

24.04

Your WSL versions:

Versione WSL: 2.6.3.0
Versione kernel: 6.6.87.2-1
Versione WSLg: 1.0.71
Versione MSRDC: 1.2.6353
Versione Direct3D: 1.611.1-81528511
Versione DXCore: 10.0.26100.1-240331-1435.ge-release
Versione di Windows: 10.0.26200.8037

Steps to reproduce:

1.Open gnome-mahjongg.
2.Maximize the window.
3.Close the application.
4.Re-open the application.

WSL logs:

No response

WSL dumps:

No response

Expected behavior:

The issue does not occur if the app starts in windowed mode and is maximized manually afterwards. It also doesn't occur using GDK_BACKEND=x11 gnome-mahjongg

Actual behavior:

The application crashes immediately on startup if the previous state was "maximized" while running on a Wayland session over RDP (Weston/Mutter-RDP).
Gdk-Message: Error 71 (Protocol error) dispatching to Wayland display.

The WAYLAND_DEBUG=1 log shows a mismatch between the buffer sent by the client and the state expected by the compositor:
wl_display@1.error(xdg_wm_base@18, 4, "xdg_surface buffer (900 x 600) does not match the configured maximized state (0 x 0)")

GTK 3 fails to correctly negotiate the initial geometry during the xdg_toplevel.configure sequence on RDP-based Wayland compositors when the window state is set to maximized.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions