Skip to content

GTK2/3: mouse move starts Visual selection after a dialog - #21014

Open
h-east wants to merge 1 commit into
vim:masterfrom
h-east:gtk3-forget-mouse-button-on-grab
Open

GTK2/3: mouse move starts Visual selection after a dialog#21014
h-east wants to merge 1 commit into
vim:masterfrom
h-east:gtk3-forget-mouse-button-on-grab

Conversation

@h-east

@h-east h-east commented Aug 11, 2026

Copy link
Copy Markdown
Member
Problem:  In GTK2/GTK3, when a dialog pops up while a mouse button is
          pressed, moving the mouse afterwards starts a Visual selection
          without any button being held down.
Solution: Forget about the pressed mouse button when another widget
          shadows the text area with a grab, since the button release
          event goes to that widget.

fixes: #20907

Problem:  In GTK2/GTK3, when a dialog pops up while a mouse button is
          pressed, moving the mouse afterwards starts a Visual selection
          without any button being held down.
Solution: Forget about the pressed mouse button when another widget
          shadows the text area with a grab, since the button release
          event goes to that widget.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

gtk3(wayland): mouse press inside window triggers VISUAL selection, even if dialog takes focus

1 participant