Skip to content

WindowClone: display modal dialogs on top of parent window#2805

Open
lenemter wants to merge 4 commits intomainfrom
lenemter/window-clone-children
Open

WindowClone: display modal dialogs on top of parent window#2805
lenemter wants to merge 4 commits intomainfrom
lenemter/window-clone-children

Conversation

@lenemter
Copy link
Copy Markdown
Member

Closes #198

Before

Screenshot from 2025-08-06 21 14 57

After

Screenshot from 2025-08-06 21 13 56

@lenemter lenemter requested a review from leolost2605 March 31, 2026 19:39
Copy link
Copy Markdown
Member

@leolost2605 leolost2605 left a comment

Choose a reason for hiding this comment

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

This looks really cool, thank you! Just a few comments :)

Comment thread src/WindowListModel.vala Outdated
Comment thread src/Widgets/MultitaskingView/WindowClone.vala Outdated
finish_drag ();
}

private bool filter_child_window (Object obj) requires (obj is Meta.Window) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Afaict this currently introduces a memory leak since the custom filter holds a ref on us because we are the delegate target and we hold a ref on the custom filter via the window list model. Ig the cleanest way to do this is to make a gtk.filter subclass. Alternatively we could also make this method static and then set the window as glib.object.set_data on the filter so that we can get it in the static function.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

There seems to be a memory leak in main as well... But I implemented a Gtk.Filter subclass anyway. I'll take a look at the memory leak later this week

Comment thread src/WindowListModel.vala
Copy link
Copy Markdown
Member

@leolost2605 leolost2605 left a comment

Choose a reason for hiding this comment

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

Just a few more comments :)

Comment thread src/Widgets/MultitaskingView/WindowClone.vala Outdated
Comment thread src/Widgets/MultitaskingView/WindowClone.vala Outdated
Comment thread src/Widgets/MultitaskingView/WindowClone.vala Outdated
@lenemter lenemter force-pushed the lenemter/window-clone-children branch from af30519 to 000b949 Compare April 10, 2026 08:35
@lenemter lenemter requested a review from leolost2605 April 10, 2026 08:38
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.

Multitasking should be disabled when an application sends an important message.

2 participants