grabs: Snap Window Edges to Close Output Edges

This commit is contained in:
Daniel 2025-02-14 21:58:09 +11:00 committed by GitHub
parent 2678cf41b2
commit 2553810621
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 148 additions and 13 deletions

View file

@ -888,6 +888,7 @@ impl FloatingLayout {
seat: &Seat<State>,
start_data: GrabStartData,
edges: ResizeEdge,
edge_snap_threshold: u32,
release: ReleaseMode,
) -> Option<ResizeSurfaceGrab> {
if seat.get_pointer().is_some() {
@ -900,6 +901,7 @@ impl FloatingLayout {
mapped.clone(),
edges,
self.space.outputs().next().cloned().unwrap(),
edge_snap_threshold,
location,
size,
seat,