Skip to content

Rewrite GTK3 screenshot logic to work with Wayland #633#1534

Merged
ptziegler merged 1 commit into
eclipse-windowbuilder:masterfrom
ptziegler:gtk3-cleanup
Jun 19, 2026
Merged

Rewrite GTK3 screenshot logic to work with Wayland #633#1534
ptziegler merged 1 commit into
eclipse-windowbuilder:masterfrom
ptziegler:gtk3-cleanup

Conversation

@ptziegler

Copy link
Copy Markdown
Contributor

For the longest time, screenshots on Linux were done by capturing parts of the window where a given widget was located. This approach is inherently incompatible with constraints imposed by Wayland, resulting in a blank preview.

Instead of working on the window, we directly work on the widget (similar to the SWT implementation). This approach requires the widget to be fully rendered.

Note that this new implementation is only available with Java 24 or higher.

Closes #633

@ptziegler

Copy link
Copy Markdown
Contributor Author
image

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown

Test Results

     4 files  ±0       4 suites  ±0   2h 19m 33s ⏱️ - 7m 27s
 7 020 tests ±0   6 989 ✅ +1  31 💤 ±0  0 ❌  - 1 
23 684 runs  ±0  23 586 ✅ +1  98 💤 ±0  0 ❌  - 1 

Results for commit 25a808c. ± Comparison against base commit b013371.

♻️ This comment has been updated with latest results.

@ptziegler ptziegler force-pushed the gtk3-cleanup branch 3 times, most recently from ce23e0f to 228a966 Compare June 19, 2026 16:59
…der#633

For the longest time, screenshots on Linux were done by capturing parts
of the window where a given widget was located. This approach is
inherently incompatible with constraints imposed by Wayland, resulting
in a blank preview.

Instead of working on the window, we directly work on the widget
(similar to the SWT implementation). This approach requires the widget
to be fully rendered.

Note that this new implementation is only available with Java 24 or
higher.

Closes eclipse-windowbuilder#633
@ptziegler ptziegler merged commit cbf1961 into eclipse-windowbuilder:master Jun 19, 2026
8 checks passed
@ptziegler ptziegler deleted the gtk3-cleanup branch June 19, 2026 20:09
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.

Wayland support for SWT editor

1 participant