-
Notifications
You must be signed in to change notification settings - Fork 439
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
fix: avoid some wayland problems #1165
base: dev
Are you sure you want to change the base?
fix: avoid some wayland problems #1165
Conversation
- use QT_QPA_PLATFORM=xcb when running on wayland - avoids crash when using the screen configuration list - avoids invisible window on Qt 6.8
Hi, QT_QPA_PLATFORM=xcb /usr/bin/openboard I get a black background again. |
I cannot reproduced the black background on my side (Leap 15.6, but also on a tumbleweed distrobox). I only have a black screen on the mirroring monitor when activating screen mirroring, but yeah, a lot of wayland related issues remain. BTW: Do you have multi-monitor mode enabled? My observations:
My intention for using the We do not have a good solution for wayland. We can only try to make OpenBoard as usable as possible. And Desktop mode is broken with wayland anyway. So I have chosen what I think is more usable. And a only halfway working desktop mode was the lower price compared to a crash when configuring screens. Anyway we recommend to use OpenBoard on an X11 session to use all features. |
Another note: I think that the Desktop mode as we have it in OpenBoard with X11 can never work on Wayland the same way. OpenBoard places a transparent, invisible widget on top of the desktop. It can intercept events at will: Depending on the tool they are forwarded to the application below or used for drawing, while OpenBoard still stays in the foreground. This is something the security concept of wayland definitely wants to inhibit, as it would allow any kind of applications stealing user data. You can already observe what Wayland does when you do not use If OpenBoard is in the foreground, as we have it with So that mixed mode we have on X11, where we can draw n the glass pane in front of the other applications while still delivering events through the "holes" outside of the drawings is not feasible with Wayland. I started some work on using the Desktop Portal for screenshots and screen mirroring (https://github.com/letsfindaway/OpenBoard/tree/feat-wayland-screenshot) but stopped that again. First we would have to decide: What will be the future of Desktop mode on Wayland? Should we just accept that it will not work as before and completely remove it from OpenBoard? Do we have an idea for a desktop mode which can work with Wayland? I do not have an answer to those questions. |
BTW: Do you have multi-monitor mode enabled? My observations (without xcb) I can
Screenshot don't work with with openboard,
Is there a way to force OpenBoard to wayland-mode?
That's not true. For me it works as intended.
IMO this is a No-brainer. Being able to draw on other apps so easily is a key feature of OpenBoard. |
Here's what I would do:
You can't force people change their setup but you can give them choice. Also there might be setups in gnome which work well. As I understand, the crash can be easily avoided by not clicking into the mentioned field? I would add a "Not-TODO"-List. I can write a draft for the section on openboard.ch. |
Thanks for all your comments, which gave me new insights into the problem field. I just converted this PR to Draft and am currently in favor not to merge it at all.
Together with your point 2., I would now even completely omit this and let it to the users and the explanation.
I think Step 3 comes before step 2. So yes, feel free to open a discussion about his topic!
I will investigate that further. If we don't find a solution, then I tend to disable the display of those screen indicators as workaround. They are even not correctly positioned on Wayland and therefore currently completely useless.
First start with the discussion here. I think the result may also go into a Wiki page here. But this is up to the maintainer. |
As distributions move from X11 to Wayland as default, more and more people are using OpenBoard on Wayland. However there are some known problems, e.g. the following:
The first two of these problems can be mitigated by using the
xcb
backend to force usingxwayland
. This PR sets the corresponding environment variable to enable the xcb` backend:Due to the severity of these problems I will include this PR in all by builds in the future and recommend to merge it as it has no impact for X11 sessions or for other operating systems.