Deny move/resize requests from tiled XdgToplevel Views
This commit is contained in:
parent
870f0b746e
commit
5887d54f04
@ -296,14 +296,14 @@ fn handleRequestMove(
|
|||||||
) void {
|
) void {
|
||||||
const self = @fieldParentPtr(Self, "request_move", listener);
|
const self = @fieldParentPtr(Self, "request_move", listener);
|
||||||
const seat = @intToPtr(*Seat, event.seat.seat.data);
|
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.
|
/// 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 {
|
fn handleRequestResize(listener: *wl.Listener(*wlr.XdgToplevel.event.Resize), event: *wlr.XdgToplevel.event.Resize) void {
|
||||||
const self = @fieldParentPtr(Self, "request_resize", listener);
|
const self = @fieldParentPtr(Self, "request_resize", listener);
|
||||||
const seat = @intToPtr(*Seat, event.seat.seat.data);
|
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
|
/// Called when the client sets / updates its title
|
||||||
|
Loading…
Reference in New Issue
Block a user