don't show tabs on tabbed layout whenn fullscreen

This commit is contained in:
2026-08-01 13:48:17 +02:00
parent 2d5c5445fa
commit 8d99d9171c
+9 -1
View File
@@ -866,8 +866,16 @@ fn render(self: *Wm) void {
self.scratch_order.append(gpa, win) catch {};
}
// A fullscreen window covers the whole output, tab bar included: the
// bar is placed above every window at the end of the sequence, so
// leaving it mapped would paint the strip over the fullscreen client.
const fullscreened = for (self.windows.items) |win| {
if (win.output != out or win.closed) continue;
if (win.visible and win.fullscreen) break true;
} else false;
// The tab bar sits above the tiled windows it labels.
if (out.stacked and out.tabbar_box != null and config.tabbar_height > 0) {
if (!fullscreened and out.stacked and out.tabbar_box != null and config.tabbar_height > 0) {
self.scratch_windows.clearRetainingCapacity();
for (self.windows.items) |win| {
if (win.output != out or win.closed) continue;