Skip to content

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

Open
ptziegler wants to merge 1 commit into
eclipse-windowbuilder:masterfrom
ptziegler:gtk3-cleanup
Open

Rewrite GTK3 screenshot logic to work with Wayland #633#1534
ptziegler wants to merge 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   1h 38m 49s ⏱️ - 48m 11s
 7 020 tests ±     0   6 981 ✅  -      7  31 💤 ± 0  0 ❌  - 1   8 🔥 + 8 
13 386 runs   - 10 298  13 313 ✅  - 10 272  57 💤  - 41  0 ❌  - 1  16 🔥 +16 

For more details on these errors, see this check.

Results for commit ce23e0f. ± Comparison against base commit b013371.

♻️ This comment has been updated with latest results.

…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
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