Coder Social home page Coder Social logo

Comments (20)

bk138 avatar bk138 commented on May 22, 2024

IIRC, wayland support is still preliminary. If you want to finish that, go ahead! :-)

from gromit-mpx.

tobias47n9e avatar tobias47n9e commented on May 22, 2024

I would like to, but I wouldn't even know where to start. I never tried migrating anything to Wayland before.

from gromit-mpx.

bk138 avatar bk138 commented on May 22, 2024

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
a) use generic gdk functions (if available) instead of the X stuff
OR
b) (not so nice) leave the X11 stuff in there and add Wayland specific bits in ifdfes...

from gromit-mpx.

bk138 avatar bk138 commented on May 22, 2024

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

from gromit-mpx.

tobias47n9e avatar tobias47n9e commented on May 22, 2024

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):

either it is in the compositor or it needs a protocol

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!

from gromit-mpx.

russel avatar russel commented on May 22, 2024

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.

from gromit-mpx.

bk138 avatar bk138 commented on May 22, 2024

Thank you @russel ! What's needed most is some more dev personnel as I am seriously lacking time. PRs are always welcome ;-)

from gromit-mpx.

bk138 avatar bk138 commented on May 22, 2024

@russel Ah and have you tried Wayland support of ardesia or spotlighter?

from gromit-mpx.

bk138 avatar bk138 commented on May 22, 2024

@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

GDK_BACKEND=x11 gromit-mpx -d

?

from gromit-mpx.

bk138 avatar bk138 commented on May 22, 2024

@tobias47n9e can you pls try 5e9aeb3 ?

from gromit-mpx.

tobias47n9e avatar tobias47n9e commented on May 22, 2024

After applying the patch I could launch the program using GDK_BACKEND=x11 gromit-mpx -d. Pressing F9 launches the draw cursor, but only after clicking on another program, clicking on the desktop is not enough). Drawing itself does not seem to work. Pressing F9 again correctly ends the drawing mode. An interesting thing is that the terminal used to launch Gromit is not selectable by mouse anymore, but just by keyboard.

from gromit-mpx.

bk138 avatar bk138 commented on May 22, 2024

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

from gromit-mpx.

tobias47n9e avatar tobias47n9e commented on May 22, 2024

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 gromit-mpx to launch the program. Probably not enough information to debug the issue.

from gromit-mpx.

bk138 avatar bk138 commented on May 22, 2024

Few points here:

  • restart of gromit or your Wayland session?
  • you probably should not launch from the terminal but the launcher after sudo make install. pls also make sure you haven't installed the rpm/deb package as there might be concflicts.
  • can you give some info about your environment? OS, desktop, etc with versions. I could setup a virtual machine and try myself...

from gromit-mpx.

tobias47n9e avatar tobias47n9e commented on May 22, 2024
  • A system restart
  • I didn't install an rpm package of gromit
  • I am using Fedora 24 with a standard installation and Gnome desktop.

I am thinking of updating to Fedora 25 alpha soon, to try it with the newer Wayland packages.

from gromit-mpx.

russel avatar russel commented on May 22, 2024

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.

from gromit-mpx.

bk138 avatar bk138 commented on May 22, 2024

a3bd7ab should fix that particular issue here, but not the Wayland functionality as a whole...

from gromit-mpx.

bk138 avatar bk138 commented on May 22, 2024

General update: issues with Gromit-MPX can now be funded at https://issuehunt.io/r/bk138/gromit-mpx

from gromit-mpx.

bk138 avatar bk138 commented on May 22, 2024

Getting back to this, here a some things that need fixing

from gromit-mpx.

bk138 avatar bk138 commented on May 22, 2024

Closing as as basic functionality works, #103 and #106 keep track of remaining Wayland-related issues.

from gromit-mpx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.