Skip to content

Make popups work on layer shells - #112

Closed
BlueZeeKing wants to merge 2 commits into
hyprwm:mainfrom
BlueZeeKing:layer-popup
Closed

Make popups work on layer shells#112
BlueZeeKing wants to merge 2 commits into
hyprwm:mainfrom
BlueZeeKing:layer-popup

Conversation

@BlueZeeKing

Copy link
Copy Markdown
Contributor

This changes the parent window type of popups to be IWaylandWindow not CWaylandWindow. The parent was already set by casting an IWaylandWindow to a CWaylandWindow, which is incorrect for layer shells which are IWaylandWindow but not CWaylandWindow. The popup doesn't actually need anything from CWaylandWindow so changing the type doesn't change any behavior.

Then making layer shells work is a simple change to call get popup on the layer shell after making the popup.

This corrects a unsound reinterpret cast from an IWaylandWindow to
a CWaylandWindow. Calling get popup on a layer would cause this
incorrect cast.
@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown

Hi @BlueZeeKing,

Thanks for your contribution! Unfortunately, Hyprland and hypr* no longer
accept contributions from unvouched contributors.

To get vouched, please see our contributing guide at wiki.hypr.land/Contributing-and-Debugging

This PR has been closed automatically and will not be re-opened.

@github-actions github-actions Bot closed this Aug 2, 2026
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.

1 participant