summaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
Diffstat (limited to 'dev')
-rw-r--r--dev/gui/gui.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/dev/gui/gui.zig b/dev/gui/gui.zig
index a478db03..5d4c051a 100644
--- a/dev/gui/gui.zig
+++ b/dev/gui/gui.zig
@@ -6349,8 +6349,9 @@ test "tagline pointer mapping retains physical grips and carries logical text co
try std.testing.expectEqual(body_y, body.row);
try std.testing.expect(body.tag_hit == null);
- // The workspace tag's text starts TAG_TEXT_INSET cells in, as a pane's.
- const x_top = @as(f32, @floatFromInt(pardes.TAG_TEXT_INSET)) * body_w + 3.5 * tag_w;
+ // The window's tag's text starts where its words do, at the window
+ // row's right end (UX K'2).
+ const x_top = @as(f32, @floatFromInt(pardes.tagline.windowRow(core).words)) * body_w + 3.5 * tag_w;
const topbar = gridCellAtDimensions(&g, x_top, 0.5 * body_h, body_w, body_h, tag_w);
try std.testing.expectEqual(pixelCell(x_top, 10), topbar.col);
try std.testing.expectEqual(@as(u16, 3), topbar.tag_hit.?.col);