aboutsummaryrefslogtreecommitdiff
path: root/src/output.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-04-22 22:50:03 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-04-22 22:51:18 +0200
commit1362061c4cefc558470c188d894f75faaa4e9cb2 (patch)
tree3e7228007807e02e7f6d372a96ff247800a91a5d /src/output.zig
parent94760394b4b57fec09f4fed214dd2bf70993c857 (diff)
downloadriver-1362061c4cefc558470c188d894f75faaa4e9cb2.tar.gz
river-1362061c4cefc558470c188d894f75faaa4e9cb2.tar.xz
Implement floating views
Diffstat (limited to 'src/output.zig')
-rw-r--r--src/output.zig10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/output.zig b/src/output.zig
index 9979870..a2b7de9 100644
--- a/src/output.zig
+++ b/src/output.zig
@@ -148,7 +148,12 @@ pub const Output = struct {
const visible_count = blk: {
var count: u32 = 0;
var it = ViewStack(View).pendingIterator(self.views.first, output_tags);
- while (it.next() != null) count += 1;
+ while (it.next()) |node| {
+ if (node.view.floating) {
+ continue;
+ }
+ count += 1;
+ }
break :blk count;
};
@@ -178,6 +183,9 @@ pub const Output = struct {
var it = ViewStack(View).pendingIterator(self.views.first, output_tags);
while (it.next()) |node| {
const view = &node.view;
+ if (view.floating) {
+ continue;
+ }
if (i < master_count) {
// Add the remainder to the first master to ensure every pixel of height is used
const master_height = @divTrunc(layout_height, master_count);