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

wayland: Create the server decorations after the toplevel has been configured #4374

Merged
merged 1 commit into from
May 10, 2021

Conversation

flibitijibibo
Copy link
Collaborator

Not much to see here, just turns out that a really good way to ensure the server decorations have the correct window configuration is to configure the window before creating the decorations. Who'd have thought!

@icculus icculus merged commit efbb6ff into libsdl-org:main May 10, 2021
@flibitijibibo flibitijibibo deleted the wl-server-decoration branch May 10, 2021 16:49
sulix added a commit to sulix/SDL that referenced this pull request Jul 28, 2021
Each window can have at most one zxdg toplevel decoration, but as of
[1], we accidentally create two. (If libdecor is not in use). This
causes wayland windows with server-side decorations (e.g. on KDE/KWin)
to crash with the message:

zxdg_decoration_manager_v1@7: error 1: decoration has been already constructed

This extra zxdg_decoration_manager_v1.get_toplevel_decoration() call was
introduced while deprecating wl-shell and xdg-shell-stable[1] support,
and possibly was a bad interaction with [2], which moved the decoration
creation around.

Fixes: 6aae5b4 ("Remove wl-shell and xdg-shell-unstable-v6 support (libsdl-org#4323)")

[1]: libsdl-org#4323
[2]: libsdl-org#4374
sulix added a commit to sulix/SDL that referenced this pull request Jul 28, 2021
Each window can have at most one zxdg toplevel decoration, but as of
[1], we accidentally create two. (If libdecor is not in use). This
causes wayland windows with server-side decorations (e.g. on KDE/KWin)
to crash with the message:

zxdg_decoration_manager_v1@7: error 1: decoration has been already constructed

This extra zxdg_decoration_manager_v1.get_toplevel_decoration() call was
introduced while deprecating wl-shell and xdg-shell-stable[1] support,
and possibly was a bad interaction with [2], which moved the decoration
creation around.

Fixes: 6aae5b4 ("Remove wl-shell and xdg-shell-unstable-v6 support (libsdl-org#4323)")

[1]: libsdl-org#4323
[2]: libsdl-org#4374
slouken pushed a commit that referenced this pull request Jul 28, 2021
Each window can have at most one zxdg toplevel decoration, but as of
[1], we accidentally create two. (If libdecor is not in use). This
causes wayland windows with server-side decorations (e.g. on KDE/KWin)
to crash with the message:

zxdg_decoration_manager_v1@7: error 1: decoration has been already constructed

This extra zxdg_decoration_manager_v1.get_toplevel_decoration() call was
introduced while deprecating wl-shell and xdg-shell-stable[1] support,
and possibly was a bad interaction with [2], which moved the decoration
creation around.

Fixes: 6aae5b4 ("Remove wl-shell and xdg-shell-unstable-v6 support (#4323)")

[1]: #4323
[2]: #4374
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

Successfully merging this pull request may close these issues.

None yet

2 participants