-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
Proper interaction with Wayland #27
Comments
IIRC, wayland support is still preliminary. If you want to finish that, go ahead! :-) |
I would like to, but I wouldn't even know where to start. I never tried migrating anything to Wayland before. |
First stab would be to remove device-id access, at GdkDevice does not have this anymore https://developer.gnome.org/gdk3/stable/GdkDevice.html All the X11-specifix code is in input.c. You'd have to |
For a), there is https://developer.gnome.org/gdk3/stable/GdkDevice.html#gdk-device-grab and friends for the grabs, whicht at the time of writing were broken and required me to use the XINput functions... |
I had a chat with some of the Gnome developers on IRC. Because Wayland restricts programs from drawing over other programs for security reasons, the only way to have a program like Gromit under Wayland would be to (quote):
At the moment that seems quite complicated. I might need to revisit this issue once I have a better understanding of all the parts involved. Thank you too, for explaining some of the first steps! |
I have no technical input here, just to say that I use Gromit-MPX for all my presentations at conferences and during workshops. It has become a bit of a USP, and people are always asking what software I am using. Of course I tell them, hopefully this means more users – though many of them are Windows and macOS people… Fedora is again trying to push Wayland as the default, and ditch X – I dual boot Debian Sid and Fedora Rawhide, Sid is still very much Xorg and no Wayland, Rawhide is Wayland by default but with Xorg as an option. I understand though that Xwayland is actually a hybrid; Wayland but with X-y bits. If Gromit-MPX cannot be made to work on Wayland, then I shall remain an Xorg holdout. I appreciate that Wayland is better than Xorg conceptually, but this is about what users want to do with their computers! I had stopped recompiling Gromit-MPX each day as I needed a stable working version guaranteed for conferences and workshops. I will though set up to do daily builds and check on Sid and Rawhide if that will help. |
Thank you @russel ! What's needed most is some more dev personnel as I am seriously lacking time. PRs are always welcome ;-) |
@russel Ah and have you tried Wayland support of ardesia or spotlighter? |
@tobias47n9e I was curious and just tried it out in a wayland session and gromit-mpx worked surpisingly well under XWayland. When passing in GDK_BACKEND=wayland I got the same error as you. Did you try
? |
@tobias47n9e can you pls try 5e9aeb3 ? |
After applying the patch I could launch the program using |
To clarify: 5e9aeb3 should make the manual GDK_BACKEND setting obsolete. Can you test this? Did you launch gromit-mpx from the terminal? It seems doing make install and using the GNOME launcher makes a difference... |
Not sure why GDK_BACKEND is not chosen automatically, but it doesn't work. After a restart oddly enough I could get drawing to work. After exiting and launching again, drawing does not work anymore. I am launching from the terminal. Using the icon segfaults like using only |
Few points here:
|
I am thinking of updating to Fedora 25 alpha soon, to try it with the newer Wayland packages. |
Sorry I haven't been able to chip in this for the last day or so. I should be able to try things out on Fedora Rawhide (F26 currently) over the weekend. |
a3bd7ab should fix that particular issue here, but not the Wayland functionality as a whole... |
General update: issues with Gromit-MPX can now be funded at https://issuehunt.io/r/bk138/gromit-mpx |
Getting back to this, here a some things that need fixing
|
While this does not fix all issues when running on Wayland, we at least get no hang when using GtkSelection and also can get some basic drawing after the app was activated via the tray icon. No keyboard shortcuts though. re #27
We only support 'x11' for the time being. re #27
As Wayland has no other possibility to globally listen for hotkey events than via the compositor, set the hotkeys there. This is not device-specific anymore of course. Currently supports GNOME, more hopefully to follow. re #27
This allows setting global hotkeys for a GNOME host. re #27
Sorry to dig this issue but is it using Xwayland or native Wayland @bk138 ? Edit: |
@RichardFevrier no problem ;-) yes, XWayland. |
When launching Gromit on Fedora 24 in the Gnome Wayland session I get this error:
Using the x11 session on the same machine works perfectly.
And thank you for making such a useful tool!
The text was updated successfully, but these errors were encountered: