Skip to content

Wayland backend: Add XDG Dialog protocol, and handle WidgetType::Dialog#58

Merged
dpjudas merged 3 commits intodpjudas:masterfrom
LupertEverett:xdg_dialog
Feb 4, 2026
Merged

Wayland backend: Add XDG Dialog protocol, and handle WidgetType::Dialog#58
dpjudas merged 3 commits intodpjudas:masterfrom
LupertEverett:xdg_dialog

Conversation

@LupertEverett
Copy link
Contributor

This PR adds XDG-Dialog_v1 protocol support to Wayland backend and when the said protocol is available, uses it to handle the new WidgetType::Dialog enum.

That said, this only marks the toplevels as dialogs so that the compositors recognize them as such (i.e. if you mark the XDG-Dialog'd Toplevel as modal on KDE it will dim the dialog's parent window a lil bit). It doesn't handle any dialog logic.

I also renamed m_AppSurface to m_WindowSurface on WaylandDisplayWindow as it makes more sense.

- Turn toplevel windows into XDG Dialogs when the protocol is available
- Also rename m_AppSurface to m_WindowSurface as it makes more sense
@dpjudas dpjudas merged commit c737699 into dpjudas:master Feb 4, 2026
3 checks passed
@LupertEverett LupertEverett deleted the xdg_dialog branch February 4, 2026 21:40
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