Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/activation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ use crate::{
globals::{GlobalData, ProvidesBoundGlobal},
};

/// Minimal implementation of [`RequestDataExt`].
/// User data for activation request object.
///
/// Use a custom type implementing [`RequestDataExt`] to store more data with a token request
/// Use a custom type in the `udata` field to store more data with a token request
/// e.g. to identify which request produced which token.
#[derive(Debug, Clone)]
pub struct RequestData<U> {
Expand Down Expand Up @@ -68,8 +68,8 @@ impl ActivationState {

/// Request a token for surface activation.
///
/// To attach custom data to the request implement [`RequestDataExt`] on a custom type
/// and use [`Self::request_token_with_data`] instead.
/// To attach custom data to the request provide a custom time as the `udata` field of
/// [`RequestData`].
pub fn request_token<D, U>(&self, qh: &QueueHandle<D>, request_data: RequestData<U>)
where
D: ActivationHandler<RequestUdata = U>,
Expand Down
2 changes: 1 addition & 1 deletion src/shell/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
//! [`Window`]: self::xdg::window::Window
//! [`Popup`]: self::xdg::popup::Popup
//!
//! [`Layer`]: self::layer::LayerSurface
//! [`Layer`]: self::wlr_layer::LayerSurface

use wayland_client::{
protocol::{wl_buffer, wl_output, wl_region, wl_surface},
Expand Down
Loading