Deny move/resize requests from tiled XdgToplevel Views
This commit is contained in:
parent
870f0b746e
commit
5887d54f04
1 changed files with 2 additions and 2 deletions
|
@ -296,14 +296,14 @@ fn handleRequestMove(
|
|||
) void {
|
||||
const self = @fieldParentPtr(Self, "request_move", listener);
|
||||
const seat = @intToPtr(*Seat, event.seat.seat.data);
|
||||
seat.cursor.enterMode(.move, self.view);
|
||||
if (self.view.pending.float) seat.cursor.enterMode(.move, self.view);
|
||||
}
|
||||
|
||||
/// Called when the client asks to be resized via the cursor.
|
||||
fn handleRequestResize(listener: *wl.Listener(*wlr.XdgToplevel.event.Resize), event: *wlr.XdgToplevel.event.Resize) void {
|
||||
const self = @fieldParentPtr(Self, "request_resize", listener);
|
||||
const seat = @intToPtr(*Seat, event.seat.seat.data);
|
||||
seat.cursor.enterMode(.resize, self.view);
|
||||
if (self.view.pending.float) seat.cursor.enterMode(.resize, self.view);
|
||||
}
|
||||
|
||||
/// Called when the client sets / updates its title
|
||||
|
|
Loading…
Reference in a new issue