aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de>2020-10-17 17:05:24 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-10-17 21:23:13 +0200
commitb6861bc80bce4561001c0a624ba2ad52933c24ae (patch)
tree7b4fec65e3f52277047229cbd47f2ec601be7802
parent036f9a1cb90c54c8ce968adfa6f5e05fe364f98a (diff)
downloadriver-b6861bc80bce4561001c0a624ba2ad52933c24ae.tar.gz
river-b6861bc80bce4561001c0a624ba2ad52933c24ae.tar.xz
Update view.float_box when setting a floating view to fullscreen
-rw-r--r--river/View.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/river/View.zig b/river/View.zig
index c8ce288..2e312f7 100644
--- a/river/View.zig
+++ b/river/View.zig
@@ -171,7 +171,8 @@ pub fn applyPending(self: *Self) void {
arrange_output = true;
// If switching from float to something else save the dimensions
- if (self.current.float and !self.pending.float)
+ if ((self.current.float and !self.pending.float) or
+ (self.current.float and !self.current.fullscreen and self.pending.fullscreen))
self.float_box = self.current.box;
// If switching from something else to float restore the dimensions