Skip to content

Conversation

@bbedward
Copy link
Contributor

Allows setting a parentWindow for FloatingWindow , which on wayland calls xdg_toplevel::set_parent .

Compositors may handle child windows differently (e.g. a dialog), by opening them as floating / positioned within the window that triggered them. This allows creating windows with that behavior.

@bbedward bbedward force-pushed the focuswindow-child branch 3 times, most recently from e6bcba1 to 7d989bd Compare November 26, 2025 15:29
@outfoxxed
Copy link
Member

Looks good except this case which does not work

FloatingWindow {
	id: w

	FloatingWindow {
		parentWindow: w
		visible: true
	}
}

if initially invisible and later made visible it works as expected

@bbedward
Copy link
Contributor Author

Looks good except this case which does not work

FloatingWindow {
	id: w

	FloatingWindow {
		parentWindow: w
		visible: true
	}
}

if initially invisible and later made visible it works as expected

I changed to hook into visibility and that case is now fixed

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