From 3405e2a87ca743a4c7dde9848c0c1178654c6f7c Mon Sep 17 00:00:00 2001 From: Leon Henrik Plickat Date: Wed, 16 Jun 2021 12:20:27 +0200 Subject: [PATCH] Ignore move and resize requests from fullscreened XDG toplevels --- river/XdgToplevel.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/river/XdgToplevel.zig b/river/XdgToplevel.zig index bd05465..96b618b 100644 --- a/river/XdgToplevel.zig +++ b/river/XdgToplevel.zig @@ -332,7 +332,7 @@ fn handleRequestMove( ) void { const self = @fieldParentPtr(Self, "request_move", listener); const seat = @intToPtr(*Seat, event.seat.seat.data); - if (self.view.pending.float or self.view.output.current.layout == null) + if ((self.view.pending.float or self.view.output.current.layout == null) and !self.view.pending.fullscreen) seat.cursor.enterMode(.move, self.view); } @@ -340,7 +340,7 @@ fn handleRequestMove( 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); - if (self.view.pending.float or self.view.output.current.layout == null) + if ((self.view.pending.float or self.view.output.current.layout == null) and !self.view.pending.fullscreen) seat.cursor.enterMode(.resize, self.view); }