Making an adw::Dialog modal

I’m trying to use libadwaita’s Dialog class for the first time. What’s the easiest way to make such a dialog modal?

They are always modal.

In that case I think I figured out the source of my confusion. Despite the dialog being modal, the parent window is still performing hover animations:

image

Click animations also still play. Click events don’t trigger, as you’d expect when a modal dialog is on top of it.

That window doesn’t look like an AdwWindow.

Dialog docs:

It can be used with AdwWindow and AdwApplicationWindow,

Good point. That fixes it, thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.