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

@ -2896,6 +2896,7 @@ impl Shell {
initial_window_location,
cursor_output,
active_hint,
config.cosmic_conf.edge_snap_threshold as f64,
layer,
release,
evlh.clone(),
@ -3150,6 +3151,7 @@ impl Shell {
mapped: &CosmicMapped,
seat: &Seat<State>,
edge: ResizeEdge,
edge_snap_threshold: u32,
) -> Option<(
(
Option<(PointerFocusTarget, Point<f64, Logical>)>,
@ -3217,6 +3219,7 @@ impl Shell {
seat,
start_data.clone(),
edge,
edge_snap_threshold,
ReleaseMode::Click,
) {
grab.into()
@ -3392,6 +3395,7 @@ impl Shell {
seat: &Seat<State>,
serial: impl Into<Option<Serial>>,
edges: ResizeEdge,
edge_snap_threshold: u32,
client_initiated: bool,
) -> Option<(ResizeGrab, Focus)> {
let serial = serial.into();
@ -3419,6 +3423,7 @@ impl Shell {
seat,
start_data.clone(),
edges,
edge_snap_threshold,
ReleaseMode::NoMouseButtons,
) {
grab.into()