26 lines · 1.1 KB · Rust
RawDownload
pub use gpui::layer_shell::*; use wayland_protocols_wlr::layer_shell::v1::client::{zwlr_layer_shell_v1, zwlr_layer_surface_v1}; pub(crate) fn wayland_layer(layer: Layer) -> zwlr_layer_shell_v1::Layer {    match layer {        Layer::Background => zwlr_layer_shell_v1::Layer::Background,        Layer::Bottom => zwlr_layer_shell_v1::Layer::Bottom,        Layer::Top => zwlr_layer_shell_v1::Layer::Top,        Layer::Overlay => zwlr_layer_shell_v1::Layer::Overlay,    }} pub(crate) fn wayland_anchor(anchor: Anchor) -> zwlr_layer_surface_v1::Anchor {    zwlr_layer_surface_v1::Anchor::from_bits_truncate(anchor.bits())} pub(crate) fn wayland_keyboard_interactivity(    value: KeyboardInteractivity,) -> zwlr_layer_surface_v1::KeyboardInteractivity {    match value {        KeyboardInteractivity::None => zwlr_layer_surface_v1::KeyboardInteractivity::None,        KeyboardInteractivity::Exclusive => zwlr_layer_surface_v1::KeyboardInteractivity::Exclusive,        KeyboardInteractivity::OnDemand => zwlr_layer_surface_v1::KeyboardInteractivity::OnDemand,    }}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t