CuarzoSoftware / Louvre

C++ library for building Wayland compositors.
MIT License
506 stars 14 forks source link

Doc Downloads: use freeimage-devel instead of libfreeimage-devel #2

Closed jwijenbergh closed 9 months ago

jwijenbergh commented 9 months ago

libfreeimage-devel does not exist on Fedora, freeimage-devel seems to be the right name https://pkgs.org/download/freeimage-devel.

Cool project! Also a note: I was trying it in a virt-manager VM and to my surprise the examples actually ran but cursor input (movement ok but not clicks) was not working however. Keyboard input was. But I assume a VM is not the supposed way to run this right now (just the easiest to run it for me atm as fedora was documented well)

ehopperdietzel commented 9 months ago

Whoops! Fatal typo, haha. Thank you so much for catching that!

So, the cursor moves, UI elements react when you hover over them, but only pointer clicks don't work? I tried it as well as Weston and Sway in VirtualBox some time ago, and all seemed to have an issue detecting pointer events. There was an option I had to enable to make it work, but unfortunately, I don't remember what it was. I'll check it out. It's probably something related to WM input drivers because as far as I know, all of them use Libinput.

jwijenbergh commented 9 months ago

I tried it as well as Weston and Sway in VirtualBox some time ago, and all seemed to have an issue detecting pointer events.

It has always been tricky for me as well to get wlroots based compositors to work in a vm too, but I haven't tried that in a while to be fair. Edit: Sway seems to work fine

So, the cursor moves, UI elements react when you hover over them, but only pointer clicks don't work

The cursor moves, nothing happens on hover or click. Weston seems to work somewhat, the cursor sometimes stays in the "typing" mode (the selection cursor icon) but clicks do seem to register and hovers register.

Anyways I will try some settings, issues like these are mostly noise for a young wayland compositor library. Probably the priority would be to get everything working on real hardware

Edit: Got it to work: In virt-manager I needed to add my usb mouse as extra hardware

(first pic), even though virt-manager automatically adds a mouse (PS/2 device) (second pic): 20231114_23h28m03s_grim 20231114_23h27m47s_grim

ehopperdietzel commented 9 months ago

Great! Thank you. I also tried it in VirtualBox and found a tab labeled "input" with an option called "Mouse Integration." If you enable it and then click on the window, it works! 😄