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

[LP1943052] wayland-manager: allocate new wl_output information by checking id #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mtasaka
Copy link
Contributor

@mtasaka mtasaka commented Sep 20, 2021

With KDE Plasma Wayland session, after calling wl_output_add_listener()
and waiting for wl_output information with wl_display_roundtrip(),
wl_output::mode info is returned before wl_output::geometry info.

Current cairo-dock-wayland-manager logic expects the opposite order, and
on KDE session this causes cairo-dock segfault.

To avoid this, when collecting wl_output information, we should also check
"id" member of global registry object associated with that wl_output info,
check if the "id" is already the duplicates of the old infos.

Then if the "id" is new one, then allocate the new buffer to register new
wl_output information beforehand, then call wl_display_roundtrip() to gain
wl_output::geometry or wl_output::output information.

Should fix https://bugs.launchpad.net/cairo-dock-core/+bug/1943052

…ecking id

With KDE Plasma Wayland session, after calling wl_output_add_listener()
and waiting for wl_output information with wl_display_roundtrip(),
wl_output::mode info is returned before wl_output::geometry info.

Current cairo-dock-wayland-manager logic expects the opposite order, and
on KDE session this causes cairo-dock segfault.

To avoid this, when collecting wl_output information, we should also check
"id" member of global registry object associated with that wl_output info,
check if the "id" is already the duplicates of the old infos.

Then if the "id" is new one, then allocate the new buffer to register new
wl_output information beforehand, then call wl_display_roundtrip() to gain
wl_output::geometry or wl_output::output information.
@rafaellancas
Copy link

How do I do that?

@yarons
Copy link

yarons commented Jan 22, 2023

Maybe I should switch to the cairo-dock-git package to resolve this.

@dkondor
Copy link
Contributor

dkondor commented Apr 30, 2024

Hi,
this should be fixed by #16 which was just merged and includes a lot of Wayland-related changes (I tested with KWin 5.24). Could you also re-test?
Thanks!

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

4 participants