Skip to content

#448-F: GTK tab click (activate/close) dead when only ONE tab group exists #553

Description

@JDonaghy

Follow-up to the GTK→ShellApp event-dispatch migration. Parent: #448 (regression from #540). Related: #544, #546, #549, #477.

Summary

With a single tab group open, clicking a tab does not activate it, and clicking the tab's × does not close it. As soon as the layout has two or more tab groups, tab clicks (activate + close) work again.

Repro

  1. Open the app with a single tab group (default).
  2. Open 2+ files so multiple tabs show in that one group.
  3. Click a non-active tab → nothing happens (should activate).
  4. Click a tab's × → nothing happens (should close).
  5. Split the editor into a second tab group → tab clicks now work in both groups.

Root-cause hint

The single-group vs split-group tab-bar paths diverge, and the single-group branch's hit regions appear not to be computed/registered on the new ShellApp click dispatch:

  • src/gtk/click.rs:44 (tab-bar height + click routing)
  • render::compute_tab_bar_hit_regions() / cached TabBar layout

#549 tracks unifying the split/single draw-loop duplication; this is the click-side counterpart of the same divergence.

Related

Acceptance

Single-group tab activate + close work via mouse; add a TuiDriver/black-box test that opens one group and asserts a tab click changes the active tab and the × closes it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcoordTracked by coord-tui pipelinestatus:readyRefined and ready to enter the work pipelinetest-mode:autocoord: per-issue test-mode policyuiUI/rendering

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions