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

Remove QT+GNOME+Wayland 'xcb' hack on fixed Qt versions #3683

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

danudey
Copy link

@danudey danudey commented Jul 31, 2024

We implement code on GNOME desktops to force QT_QPA_PLATFORM to xcb; this works around a clipboard-related bug on GNOME+Wayland+Qt.

This bug was fixed (or worked around) in Qt 5.15.2, so we implement a version check; if the runtime Qt version is < 5.15.2, still force the workaround; otherwise, we don't need the workaround so we skip it.

We also add logging output so that users attempting to force the app not to use xcb won't get confused (as I did).

Note that the original discussion on this issue was in ksnip/ksnip#416, which indicates when this issue was fixed in Qt.

We implement code on GNOME desktops to force the
QT_QPA_PLATFORM to be 'xcb'; this works around a
clipboard-related bug on GNOME+Wayland+Qt.

This bug was fixed (or worked around) in Qt 5.15.2,
so we implement a version check; if the runtime Qt
version is < 5.15.2, still force the workaround;
otherwise, we don't need the workaround so we skip
it.
@danudey
Copy link
Author

danudey commented Sep 27, 2024

Is @mmahmoudian or anyone else available to review this PR/provide feedback on it?

@mmahmoudian
Copy link
Member

mmahmoudian commented Sep 28, 2024

Thanks, the code looks clean and make sense to me and I believe it is small enough that I can merge it without waiting for other devs.

I just had a small question about a defined constant string, that I'll be grateful if you can provide some insight.

I'll merge it now.

Thanks for your detailed contribution and providing references and details.

@mmahmoudian mmahmoudian added this to the v13 milestone Sep 28, 2024
@mmahmoudian
Copy link
Member

I'm so confused on why GithubActions are not running for this PR! I'm also merging #3725 and that one is running all the CIs. I need to make sure all CIs pass before merging.

@danudey
Copy link
Author

danudey commented Oct 1, 2024

@mmahmoudian I added another commit (with clang-format updates), and it says "This workflow requires approval from a maintainer", and links to this document. Perhaps that's what's missing?

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.

2 participants