Skip to content

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

Description

@tyressk

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 xdg_activation_token_v1@17.set_surface expects an argument of interface wl_surface but xdg_surface was provided instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions