You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to capture the shell and all its widgets with Wayland, the resulting images all end up completely empty.
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...
The text was updated successfully, but these errors were encountered:
When trying to capture the shell and all its widgets with Wayland, the resulting images all end up completely empty.
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:
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...
The text was updated successfully, but these errors were encountered: