]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0590: GTK4: drawing area loses focus shape on popup menu open v9.2.0590
authorFoxe Chen <chen.foxe@gmail.com>
Wed, 3 Jun 2026 18:19:42 +0000 (18:19 +0000)
committerChristian Brabandt <cb@256bit.org>
Wed, 3 Jun 2026 18:19:42 +0000 (18:19 +0000)
commit7d8971edf470132e9dde3ae01be6830cfed70773
tree78085ec3a4e6ec28ffe7aa67647d132465b23d8d
parent5b76ddcc5220603b9c062d3e230faad9b0aed0d2
patch 9.2.0590: GTK4: drawing area loses focus shape on popup menu open

Problem:  GTK4: any focus change on the drawarea turns the cursor
          into an outline, including transient focus movement to a
          GUI popup menu and back.  The cursor flashes outline-shape
          during menu interaction.  The GTK3 GUI does not have this
          problem because it ties the cursor shape to toplevel window
          focus, not drawarea focus.
Solution: Gate focus_in_event() and focus_out_event() on
          gtk_window_is_active() of the toplevel window, matching
          GTK3 behaviour. Reverts v9.2.0588 (Foxe Chen).

closes: #20415

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/gui_gtk4.c
src/version.c