client-toolkit
client-toolkit copied to clipboard
Error setting RequestData surface during ActivationState.request_token when surface is already in use
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.