Skip to content

Try to stabilize relative location calculation of Swing components #1524#1568

Merged
ptziegler merged 1 commit into
eclipse-windowbuilder:masterfrom
ptziegler:issue1524
Jul 25, 2026
Merged

Try to stabilize relative location calculation of Swing components #1524#1568
ptziegler merged 1 commit into
eclipse-windowbuilder:masterfrom
ptziegler:issue1524

Conversation

@ptziegler

Copy link
Copy Markdown
Contributor

The way a Swing component is moved on Linux is via a request to the window manager, which is then processed asynchronously. Because of this, it might happen that the relative location of two widgets is calculated while one is being moved, leading to wildly inaccurate results.

To reduce the likelihood of this happening, we wait until the offset remains the same two times in a row, which makes it very likely that the move as completed.

Closes #1524

…lipse-windowbuilder#1524

The way a Swing component is moved on Linux is via a request to the
window manager, which is then processed asynchronously. Because of this,
it might happen that the relative location of two widgets is calculated
while one is being moved, leading to wildly inaccurate results.

To reduce the likelihood of this happening, we wait until the offset
remains the same two times in a row, which makes it very likely that the
move as completed.

Closes eclipse-windowbuilder#1524
@ptziegler ptziegler added this to the 1.25.0 milestone Jul 24, 2026
@github-actions

github-actions Bot commented Jul 25, 2026

Copy link
Copy Markdown

Test Results

     4 files  ±0       4 suites  ±0   2h 24m 16s ⏱️ + 4m 57s
 7 023 tests ±0   6 992 ✅ ±0  31 💤 ±0  0 ❌ ±0 
23 696 runs  ±0  23 598 ✅ ±0  98 💤 ±0  0 ❌ ±0 

Results for commit 2c1ee18. ± Comparison against base commit 84e0288.

♻️ This comment has been updated with latest results.

@ptziegler
ptziegler merged commit 9dba7f7 into eclipse-windowbuilder:master Jul 25, 2026
12 of 13 checks passed
@ptziegler
ptziegler deleted the issue1524 branch July 25, 2026 09:16
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.

Unstable test FlipBooleanPropertyGefTest.test_doFlip

1 participant