Skip to content

[Gtk4] Fix caret not painted on GTK4 with Snippet74#3356

Merged
akurtakov merged 1 commit into
eclipse-platform:masterfrom
akurtakov:master
Jun 2, 2026
Merged

[Gtk4] Fix caret not painted on GTK4 with Snippet74#3356
akurtakov merged 1 commit into
eclipse-platform:masterfrom
akurtakov:master

Conversation

@akurtakov
Copy link
Copy Markdown
Member

  • Override hooksPaint() in Canvas to enable the Cairo draw pipeline when a caret is showing
  • Use isShowing (not blink) in drawCaretInFocus() for GTK4 fresh so repaints don't erase the caret
  • Skip drawFlag on GTK4 and use foreground color with CAIRO_OPERATOR_OVER instead of DIFFERENCE against transparent surface
  • Fix gtk4_focus_leave_event calling setFocus() instead of killFocus()

* Override hooksPaint() in Canvas to enable the Cairo draw pipeline
when a caret is showing
* Use isShowing (not blink) in drawCaretInFocus() for GTK4 fresh so
repaints don't erase the caret
* Skip drawFlag on GTK4 and use foreground color with
CAIRO_OPERATOR_OVER instead of DIFFERENCE against transparent surface
* Fix gtk4_focus_leave_event calling setFocus() instead of killFocus()
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2026

Test Results (linux)

   94 files  +   31     94 suites  +31   14m 56s ⏱️ + 6m 34s
4 603 tests ±    0  4 379 ✅ ±    0  224 💤 ± 0  0 ❌ ±0 
3 401 runs  +1 125  3 326 ✅ +1 084   75 💤 +41  0 ❌ ±0 

Results for commit b0d0bbb. ± Comparison against base commit 9ab3898.

@akurtakov akurtakov merged commit 5bafd01 into eclipse-platform:master Jun 2, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants