Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wayland support for SWT editor #633

Open
ptziegler opened this issue Nov 14, 2023 · 1 comment
Open

Wayland support for SWT editor #633

ptziegler opened this issue Nov 14, 2023 · 1 comment
Labels
enhancement New feature or request linux Only happens on Linux
Milestone

Comments

@ptziegler
Copy link
Contributor

When trying to capture the shell and all its widgets with Wayland, the resulting images all end up completely empty.

image

This seems to be a common problem not only we, but also the SWT team seems to be affected by.

The most concise explanation I could find boils down to:

By design, Wayland is a lot more secure than X11 and does not allow one application to capture the content of other applications

Or in short: Screen capture is not a valid use case.

Gnome seems to support using dbus API and some internal endpoints but that just reeks of bad code. Moreover, it would also mean that we have to implement this workaround for every window manager, which I don't see as a feasible solution...

Has anyone ever worked with Wayland or had to handle with this kind of problem? Suggestions would help out a lot!

My current plan is to invoke the capture mechanism from within the mocked shell (as in, the application tries to capture itself), but I have no clue if even that is allowed by Wayland...

@ptziegler ptziegler added the enhancement New feature or request label Nov 14, 2023
@ptziegler ptziegler added this to the 1.15.0 milestone Nov 14, 2023
@merks
Copy link
Contributor

merks commented Nov 15, 2023

Wayland is so annoying. I can't even tell a shell where it should be located:

eclipse-platform/eclipse.platform.swt#790

@ptziegler ptziegler modified the milestones: 1.15.0, 1.16.0 Mar 13, 2024
@ptziegler ptziegler added the linux Only happens on Linux label Jun 5, 2024
@ptziegler ptziegler modified the milestones: 1.16.0, 1.17.0 Jun 13, 2024
@ptziegler ptziegler pinned this issue Aug 26, 2024
@ptziegler ptziegler modified the milestones: 1.17.0, 1.18.0 Sep 11, 2024
@ptziegler ptziegler modified the milestones: 1.18.0, 1.19.0 Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request linux Only happens on Linux
Projects
None yet
Development

No branches or pull requests

2 participants