diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-05-28 13:10:42 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-05-28 13:10:42 +0200 |
| commit | c9944e92bc1e2bff9071300b25b11642d218f424 (patch) | |
| tree | 6d6f4d6ffb17381b3cabb5e52ee2b9f594c14513 /pkgs/by-name/ri/river-mk-keymap/src/wayland/shm/slot.rs | |
| parent | pkgs/mpp-searchadd: Make resistent to `beets` auto-migrations on startup (diff) | |
| download | nixos-config-c9944e92bc1e2bff9071300b25b11642d218f424.zip | |
treewide: Format
Diffstat (limited to 'pkgs/by-name/ri/river-mk-keymap/src/wayland/shm/slot.rs')
| -rw-r--r-- | pkgs/by-name/ri/river-mk-keymap/src/wayland/shm/slot.rs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/by-name/ri/river-mk-keymap/src/wayland/shm/slot.rs b/pkgs/by-name/ri/river-mk-keymap/src/wayland/shm/slot.rs index ab52c5f6..1f70c0e9 100644 --- a/pkgs/by-name/ri/river-mk-keymap/src/wayland/shm/slot.rs +++ b/pkgs/by-name/ri/river-mk-keymap/src/wayland/shm/slot.rs @@ -4,20 +4,20 @@ use std::io; use std::{ os::unix::io::{AsRawFd, OwnedFd}, sync::{ - atomic::{AtomicU8, AtomicUsize, Ordering}, Arc, Mutex, Weak, + atomic::{AtomicU8, AtomicUsize, Ordering}, }, }; use wayland_client::backend::protocol::Message; use wayland_client::backend::{ObjectData, ObjectId}; use wayland_client::{ - protocol::{wl_buffer, wl_shm, wl_surface}, Proxy, + protocol::{wl_buffer, wl_shm, wl_surface}, }; -use crate::wayland::shm::raw::RawPool; use crate::wayland::shm::CreatePoolError; +use crate::wayland::shm::raw::RawPool; #[derive(Debug, thiserror::Error)] pub(crate) enum CreateBufferError { @@ -420,7 +420,10 @@ impl Buffer { /// Note: if you need to ensure that [`canvas()`](Buffer::canvas) calls never return data that /// could be attached to a surface in a multi-threaded client, make this call while you have /// exclusive access to the corresponding [`SlotPool`]. - pub(crate) fn attach_to(&self, surface: &wl_surface::WlSurface) -> Result<(), ActivateSlotError> { + pub(crate) fn attach_to( + &self, + surface: &wl_surface::WlSurface, + ) -> Result<(), ActivateSlotError> { self.activate()?; surface.attach(Some(&self.inner), 0, 0); Ok(()) |
