[GTK] Closing a View window closes them all

Open
#5,677 11 comments 0 reactions 2 assignees View on GitHub

@qtxie is already working on this.

Since Jan 21, 2026.

Assessment

This issue has not been assessed yet.

Description

GUI.GTK type.bug

To reproduce:

Red [Needs: View]

view/no-wait [button "I have the focus!" focus [print "ok"]]
me: view/no-wait [button "Close" focus [unview me]]
do-events

Close the second window, either from the button or the [x] window gadget, both windows will be closed!

Expected behavior: only current window closing.

NB: once fixed, check for possible regression caused by the fix for #5672

Dominant language
Red
Stars
6k
Forks
416
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from red/red

All issues in red/red

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.