diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-06-04 08:26:51 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-06-04 09:40:22 +0300 |
| commit | 9858599ac12ab9592c08e062b2301e7c24429c81 (patch) | |
| tree | 00359d51ac8de610be746680a766870f0f2bb11d /src | |
| parent | abac28a65c6c742114ef292221dd26e2a3a2f04b (diff) | |
| download | niri-9858599ac12ab9592c08e062b2301e7c24429c81.tar.gz niri-9858599ac12ab9592c08e062b2301e7c24429c81.tar.bz2 niri-9858599ac12ab9592c08e062b2301e7c24429c81.zip | |
Round lock surface size, rather than floor
There's no problem with 1 px overflow here, while 1 px underflow shows up as a
border.
Diffstat (limited to 'src')
| -rw-r--r-- | src/handlers/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/handlers/mod.rs b/src/handlers/mod.rs index ffbf2439..8353cd09 100644 --- a/src/handlers/mod.rs +++ b/src/handlers/mod.rs @@ -25,7 +25,7 @@ use smithay::reexports::wayland_server::protocol::wl_data_source::WlDataSource; use smithay::reexports::wayland_server::protocol::wl_output::WlOutput; use smithay::reexports::wayland_server::protocol::wl_surface::WlSurface; use smithay::reexports::wayland_server::Resource; -use smithay::utils::{Logical, Point, Rectangle, Size}; +use smithay::utils::{Logical, Point, Rectangle}; use smithay::wayland::compositor::{get_parent, with_states}; use smithay::wayland::dmabuf::{DmabufGlobal, DmabufHandler, DmabufState, ImportNotifier}; use smithay::wayland::drm_lease::{ @@ -470,7 +470,7 @@ delegate_session_lock!(State); pub fn configure_lock_surface(surface: &LockSurface, output: &Output) { surface.with_pending_state(|states| { let size = output_size(output); - states.size = Some(Size::from((size.w as u32, size.h as u32))); + states.size = Some(size.to_i32_round()); }); let scale = output.current_scale(); let transform = output.current_transform(); |
