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

Error setting RequestData surface during ActivationState.request_token when surface is already in use #472

Open
tyressk opened this issue Oct 14, 2024 · 0 comments

Comments

@tyressk
Copy link

tyressk commented Oct 14, 2024

I'm opening a window and want to request focus to it from an existing surface by using XDG activation token, but I'm getting an error setting the calling surface when I'm calling ActivationState.request_token().

Example:


        if let Some(activation) = xdg_activation.as_ref() {
            activation.request_token(
                &qh,
                RequestData {
                    seat_and_serial: Some((seat,serial)),
                    //last_surface is an existing surface of type WlSurface
                    surface: Some(last_surface.clone()),
                    app_id: Some(String::from("CallingWindow")),
                },
            );
        }

I get:
Request [email protected]_surface expects an argument of interface wl_surface but xdg_surface was provided instead.

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

No branches or pull requests

1 participant