Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provides a method to get xdg_toplevel on Wayland #4068

Open
ultimaweapon opened this issue Dec 31, 2024 · 1 comment · May be fixed by #4076
Open

Provides a method to get xdg_toplevel on Wayland #4068

ultimaweapon opened this issue Dec 31, 2024 · 1 comment · May be fixed by #4076
Labels
DS - wayland S - enhancement Wouldn't this be the coolest?

Comments

@ultimaweapon
Copy link

Description

I would like to create xdg_dialog_v1 object for winit window. In order to create it I need xdg_toplevel from winit window to feed to xdg_wm_dialog_v1::get_xdg_dialog.

Relevant platforms

Wayland

@ultimaweapon ultimaweapon added the S - enhancement Wouldn't this be the coolest? label Dec 31, 2024
@ultimaweapon
Copy link
Author

I propose adding a new method to WindowExtWayland like the following:

pub trait WindowExtWayland {
    fn xdg_toplevel(&self) -> Option<&XdgToplevel>;
}

I can create a PR to implement this if the above proposal is okay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DS - wayland S - enhancement Wouldn't this be the coolest?
Development

Successfully merging a pull request may close this issue.

2 participants