Middle-click paste does not work when GTK scrollbar is enabled #10616
Issue DescriptionMiddle-click paste (primary selection paste) does not work when the GTK scrollbar feature is enabled. The I investigated this issue and created a fix. See "Additional Relevant Configuration" for the full analysis and proposed solution. Previously submitted as Issue #10613 and PR #10614 (closed per triage protocol). Expected BehaviorText from primary selection should be pasted into the terminal when middle-clicking, as it does when scrollbars are disabled ( Actual BehaviorNothing happens when middle-clicking. The paste does not occur. The Reproduction Steps
Ghostty LogsNo response Ghostty VersionOS Version InformationUbuntu 25.10 (Linux only) Display ServerWayland (Linux only) Desktop Environment/Window ManagerGNOME 47 Minimal Ghostty Configurationscrollbar = systemAdditional Relevant ConfigurationInvestigation and FixI built a debug version with logging in
Root CauseThe Proposed Fix
Changed Files
Full ImplementationFork with fix: https://github.com/hakonhagland/ghostty/tree/fix-scrollbar-middle-click-paste I acknowledge that:
|
Replies: 4 comments 3 replies
|
works just fine for me with using sway without any changes on the latest commit. So there is something else beyond the ScrolledWindow intercepting the events edit that wasnt the most recent commit I forgot to pull it down, testing the most recent it still works |
|
Think I found the root cause! It's the GNOME setting:
I had So this affects users who disable overlay scrolling in GNOME. The fix I proposed in PR #10614 would restore middle-click for those users, but it's a niche case. Thanks for helping narrow this down! |
|
!vouch |
Think I found the root cause! It's the GNOME setting:
overlay-scrolling=true(default): middle-click works fineoverlay-scrolling=false(traditional scrollbars): middle-click is intercepted byScrolledWindowI had
overlay-scrolling=false. Changing it to true fixes the issue without any code changes.So this affects users who disable overlay scrolling in GNOME. The fix I proposed in PR #10614 would restore middle-click for those users, but it's a niche case.
Thanks for helping narrow this down!