Skip to content

Conversation

@vogella
Copy link
Contributor

@vogella vogella commented Jan 27, 2026

The SysLink control in Windows has a tendency to flash or flicker when it is being resized.
This happens because the background is erased before being redrawn by the control itself.

This change overrides WM_ERASEBKGND for the Link widget to return LRESULT.ONE, which tells Windows that the background erasure has been handled.
This prevents the unnecessary clear operation and results in a smoother resize experience without flickering.

Also adding additional tests for the Link widgets for all platforms.

Fixes #1811

@github-actions
Copy link
Contributor

github-actions bot commented Jan 27, 2026

Test Results

  176 files  ±0    176 suites  ±0   26m 46s ⏱️ - 4m 7s
4 683 tests +3  4 661 ✅ +3  22 💤 ±0  0 ❌ ±0 
  485 runs  ±0    479 ✅ ±0   6 💤 ±0  0 ❌ ±0 

Results for commit 09940a1. ± Comparison against base commit 3ccbe91.

♻️ This comment has been updated with latest results.

The SysLink control in Windows has a tendency to flash or flicker when
it is being resized.
This happens because the background is erased before being redrawn by
the control itself.

This change overrides WM_ERASEBKGND for the Link widget to return
LRESULT.ONE, which tells Windows that the background erasure has been
handled.
This prevents the unnecessary clear operation and results in a smoother
resize experience without flickering.

Also adding additional tests for the Link widgets for all platforms.

Fixes eclipse-platform#1811
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.

Flickering of Links under Windows during requestLayout calls

1 participant