Skip to content

Make popups work on layer shells and fix incorrect cast - #114

Merged
vaxerski merged 2 commits into
hyprwm:mainfrom
BlueZeeKing:layer-popup
Aug 3, 2026
Merged

Make popups work on layer shells and fix incorrect cast#114
vaxerski merged 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.
@vaxerski
vaxerski merged commit 293f69a into hyprwm:main Aug 3, 2026
6 checks passed
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