Skip to content

Conversation

@lenemter
Copy link
Member

This allows us to correctly handle multiple modal proxies with grabs (e.g. window overview + area screenshot)

@lenemter lenemter requested a review from a team January 22, 2026 17:28
@lenemter lenemter force-pushed the lenemter/better-modal-proxy branch from 14d207a to 61366a2 Compare January 22, 2026 17:29
@lenemter lenemter force-pushed the lenemter/better-modal-proxy branch from 61366a2 to 52cc456 Compare January 22, 2026 17:30
var proxy = new ModalProxy ();
var current_proxy = modal_stack.peek_head ();
if (current_proxy.grab != null) {
current_proxy.grab.dismiss ();
Copy link
Member

Choose a reason for hiding this comment

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

Hmm IIRC clutter stacks the grabs internally already so why is this needed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmmm... It was a bit broken when I tested it on older mutter but now it works fine. Thanks for letting me know!

@lenemter lenemter closed this Jan 23, 2026
@lenemter lenemter deleted the lenemter/better-modal-proxy branch January 23, 2026 12:01
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