Skip to content

Commit

Permalink
fix: layershell binding
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Apr 20, 2024
1 parent c42d948 commit be1f592
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/swayloop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ pub fn swaylayer() {
layer_shell.create_layer_surface(&qh, surface, Layer::Top, Some("simple_layer"), None);
// Configure the layer surface, providing things like the anchor on screen, desired size and the keyboard
// interactivity
layer.set_anchor(Anchor::BOTTOM);
layer.set_keyboard_interactivity(KeyboardInteractivity::OnDemand);
layer.set_anchor(Anchor::TOP);
layer.set_keyboard_interactivity(KeyboardInteractivity::Exclusive);
layer.set_size(256, 256);

// In order for the layer surface to be mapped, we need to perform an initial commit with no attached\
Expand Down Expand Up @@ -183,10 +183,10 @@ impl CompositorHandler for SimpleLayer {

fn transform_changed(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
surface: &wl_surface::WlSurface,
new_transform: wl_output::Transform,
_conn: &Connection,
_qh: &QueueHandle<Self>,
_surface: &wl_surface::WlSurface,
_new_transform: wl_output::Transform,
) {
}
}
Expand Down

0 comments on commit be1f592

Please sign in to comment.