Skip to content

gtk: close tabs with middle-click - #1077

Merged
mitchellh merged 1 commit into
ghostty-org:mainfrom
meatcar:gtk-tab-middleclick-close
Dec 13, 2023
Merged

mitchellh merged 1 commit into
ghostty-org:mainfrom
meatcar:gtk-tab-middleclick-close

Conversation

@meatcar

@meatcar meatcar commented Dec 13, 2023

Copy link
Copy Markdown
Contributor

Follow the behaviour of other tabbed interfaces like browsers, editors, and file-managers.

GTK code is based on /src/apprt/gtk/ImguiWidget.zig

Follow the behaviour of other tabbed interfaces like browsers, editors,
and file-managers.

GTK code is based on `/src/apprt/gtk/ImguiWidget.zig`
@mitchellh

Copy link
Copy Markdown
Contributor

I don't have a middle click so I couldn't test this but the code looks good. Thanks!

@mitchellh
mitchellh merged commit cfc4889 into ghostty-org:main Dec 13, 2023
@mitchellh
mitchellh deleted the gtk-tab-middleclick-close branch December 13, 2023 19:59
alexeydemin added a commit to alexeydemin/ghostty that referenced this pull request Mar 26, 2026
@ghuls

ghuls commented Jun 18, 2026

Copy link
Copy Markdown

Can this behavior be disabled with a config option?
I accidentally closed a tab a lot of times when trying to paste stuff with middle click.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants