grabs: Snap Window Edges to Close Output Edges
This commit is contained in:
parent
2678cf41b2
commit
2553810621
12 changed files with 148 additions and 13 deletions
|
|
@ -197,9 +197,14 @@ impl XdgShellHandler for State {
|
|||
) {
|
||||
let seat = Seat::from_resource(&seat).unwrap();
|
||||
let mut shell = self.common.shell.write().unwrap();
|
||||
if let Some((grab, focus)) =
|
||||
shell.resize_request(surface.wl_surface(), &seat, serial, edges.into(), true)
|
||||
{
|
||||
if let Some((grab, focus)) = shell.resize_request(
|
||||
surface.wl_surface(),
|
||||
&seat,
|
||||
serial,
|
||||
edges.into(),
|
||||
self.common.config.cosmic_conf.edge_snap_threshold,
|
||||
true,
|
||||
) {
|
||||
std::mem::drop(shell);
|
||||
if grab.is_touch_grab() {
|
||||
seat.get_touch().unwrap().set_grab(self, grab, serial)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue