Skip to content

Commit

Permalink
add method for accessing layer surface shell surface
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 authored and Drakulix committed Nov 25, 2024
1 parent f182a7d commit 814c3a4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/wayland/shell/wlr_layer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,12 @@ impl LayerSurface {
attributes.current.clone()
})
}

/// Access the underlying `zwlr_layer_surface_v1` of this layer surface
///
pub fn shell_surface(&self) -> &zwlr_layer_surface_v1::ZwlrLayerSurfaceV1 {
&self.shell_surface
}
}

/// A configure message for layer surfaces
Expand Down

0 comments on commit 814c3a4

Please sign in to comment.