Skip to content

Ignore "Keep plugin windows on top" setting when on wayland#7901

Merged
michaelgregorius merged 2 commits intoLMMS:masterfrom
AW1534:wayland-vst-fix
May 31, 2025
Merged

Ignore "Keep plugin windows on top" setting when on wayland#7901
michaelgregorius merged 2 commits intoLMMS:masterfrom
AW1534:wayland-vst-fix

Conversation

@AW1534
Copy link
Member

@AW1534 AW1534 commented May 22, 2025

Fixes #7896

@AW1534
Copy link
Member Author

AW1534 commented May 28, 2025

@michaelgregorius I was told you may be interested in testing this

@michaelgregorius michaelgregorius self-requested a review May 29, 2025 12:32
Copy link
Contributor

@michaelgregorius michaelgregorius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and fixes the problem for me.

It might be considered to move the functionality to detect if LMMS is running under Wayland in a helper class though in case it is needed in more places.

@AW1534
Copy link
Member Author

AW1534 commented May 30, 2025

thanks for testing. I'm not sure it's worth making a new file just for this though, as it would be a whole new file and/or class just to contain one function which is 1 line long.

@michaelgregorius
Copy link
Contributor

thanks for testing. I'm not sure it's worth making a new file just for this though, as it would be a whole new file and/or class just to contain one function which is 1 line long.

It depends a bit on in how many other places the check

QGuiApplication::platformName().toLower().contains("wayland")

might show up. There is already quite a list of issues related to Wayland: https://github.com/LMMS/lmms/issues?q=is%3Aissue%20state%3Aopen%20wayland

It would also be better for consistency to put it into a shared function/method. One advantage would be that the check above could be changed/adjusted if necessary without having to touch several places in case the raw check above proliferates through the code.

However, it is not the most critical thing for now.

@AW1534
Copy link
Member Author

AW1534 commented May 31, 2025

It depends a bit on in how many other places the check
QGuiApplication::platformName().toLower().contains("wayland")
might show up.

I couldn't find any other matches for platformName().toLower().contains("wayland") or platformName().contains("wayland") in the code

@michaelgregorius
Copy link
Contributor

michaelgregorius commented May 31, 2025

Thanks for adding the method! Looks good to me now! 👍 I think this can be merged as is.

@AW1534
Copy link
Member Author

AW1534 commented May 31, 2025

Great! Could you please merge?

@michaelgregorius
Copy link
Contributor

Ah, sorry @AW1534, I thought you had merge permissions because you are shown as a member. Will merge...

@michaelgregorius michaelgregorius merged commit 3f8b86a into LMMS:master May 31, 2025
11 checks passed
sakertooth pushed a commit to sakertooth/lmms that referenced this pull request Jun 1, 2025
Fix a crash that occurs when running under Wayland and when loading a VST
plugin with the option "Keep plugin windows on top when not embedded"
enabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Keep plugin windows on top when not embedded" causes crashes on wayland

2 participants