H-M-H / Weylus

Use your tablet as graphic tablet/touch screen on your computer.
Other
7.07k stars 282 forks source link

Wayland support? #3

Open zachlatta opened 4 years ago

zachlatta commented 4 years ago

Does this project support Wayland? I'm running the latest on https://aur.archlinux.org/packages/weylus-bin/ and while I have input working, I'm getting a black screen on the iPad browser I'm using it from.

Input also seems to be smooth in Xwayland apps, but jumpy in Wayland native apps.

Update: See recording of this at https://www.youtube.com/watch?v=GrJXqqLKas4. All input is made via Apple Pencil on an iPad. Notice that the input is smooth when over xeyes, but jumpy over Alacritty (which is a Wayland app).

Iey4iej3 commented 1 year ago

To change the window, you can use the 'refresh sources' button, or reload the page, then choose the window you want to mirror on your screen.

I am not sure whether I misconfigured something. I compiled the latest Weylus without compiling ffmpeg (I failed to compile ffmpeg for some reasons). I am under sway.

I have exactly tried this: after clicking "refresh", the mouse icon becomes a cross, which seems to indicate me to select a windows, and after selection, the title of selected window does not appear in the drop list.

tutacat commented 1 year ago

Weylus doesn't forward the window title to the client. Just select Pipewire, which is usually selected by default. You will probably only be able to access the window you selected.

25 Aug 2023 11:27:48 Iey4iej3 @.***>:

To change the window, you can use the 'refresh sources' button, or reload the page, then choose the window you want to mirror on your screen.

I am not sure whether I misconfigured something. I compiled the latest Weylus without compiling ffmpeg (I failed to compile ffmpeg for some reasons). I am under sway.

I have exactly tried this: after clicking "refresh", the mouse icon becomes a cross, which seems to indicate me to select a windows, and after selection, the title of selected window does not appear in the drop list.

— Reply to this email directly, view it on GitHub[https://github.com/H-M-H/Weylus/issues/3#issuecomment-1693142878], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AD43AYNPVDMEBBJRQXSPJPLXXB42JANCNFSM4NX2ZYHA]. You are receiving this because you commented.[Tracking image][https://github.com/notifications/beacon/AD43AYMC6LXKNZHYHOMI7GTXXB42JA5CNFSM4NX2ZYHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOMTVU6XQ.gif]

Iey4iej3 commented 1 year ago

No, it is accessing the current display (although the cross icon seems to indicate that I was supposed to select a specific window).

tutacat commented 1 year ago

Are you selecting Pipewire or X11 display? The default cursor on X11 is an X. You only choose the window on the actual computer, it should show up on the monitor, once you load the webpage.

25 Aug 2023 11:50:17 Iey4iej3 @.***>:

No, it is accessing the current display (although the cross icon seems to indicate that I was supposed to select a specific window).

— Reply to this email directly, view it on GitHub[https://github.com/H-M-H/Weylus/issues/3#issuecomment-1693168857], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AD43AYJAS3TUYRCCJFRFV33XXB7OTANCNFSM4NX2ZYHA]. You are receiving this because you commented.[Tracking image][https://github.com/notifications/beacon/AD43AYJMVJBVHDB534OEP3TXXB7OTA5CNFSM4NX2ZYHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOMTV3JWI.gif]

Iey4iej3 commented 1 year ago

Are you selecting Pipewire or X11 display? The default cursor on X11 is an X. You only choose the window on the actual computer, it should show up on the monitor, once you load the webpage. 25 Aug 2023 11:50:17 Iey4iej3 @.***>:

I believe that it is Pipewire (the cursor, more precisely being "+" in place of "X", is very different from the default cursor of X): it is triggered by "refresh list" or truly refreshing the site, and without clicking anything, the window list is empty.

tutacat commented 1 year ago

Yes that is then. The pipewire selection depends on your window manager, so that will be how sway shows it.

25 Aug 2023 12:03:06 Iey4iej3 @.***>:

Are you selecting Pipewire or X11 display? The default cursor on X11 is an X. You only choose the window on the actual computer, it should show up on the monitor, once you load the webpage. 25 Aug 2023 11:50:17 Iey4iej3 /@/.***>:

I believe that it is Pipewire (the cursor, more precisely being "+" in place of "X", is very different from the default cursor of X): it is triggered by "refresh list" or truly refreshing the site, and without clicking anything, the window list is empty.

— Reply to this email directly, view it on GitHub[https://github.com/H-M-H/Weylus/issues/3#issuecomment-1693183563], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AD43AYOS6UUNMKM3YRCKQZTXXCA6VANCNFSM4NX2ZYHA]. You are receiving this because you commented.[Tracking image][https://github.com/notifications/beacon/AD43AYKUMBU6SNR5JT3S3FTXXCA6VA5CNFSM4NX2ZYHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOMTV64SY.gif]

Iey4iej3 commented 1 year ago

After having searched, I see that it is an issue of xdg-desktop-portal-wlr: https://github.com/emersion/xdg-desktop-portal-wlr/issues/107

matejdro commented 1 year ago

To anyone getting WARN weylus::websocket: Failed to init screen cast: Failed to create element from factory name!: It appears that latest release is very old and does not contain proper Wayland support yet. Building from master seems to fix the issue.

MarkGhebrial commented 8 months ago

For any Arch + PipeWire users getting the Failed to init screen cast: Failed to create element from factory name! error, installing the gst-plugin-pipewire package fixed it for me.

dryBoneMarrow commented 1 month ago

Is there a way for non Gnome and KDE wayland users to use weylus with video when it relies on org.freedesktop.impl.portal.RemoteDesktop? Only the KDE and Gnome portals have implemented it yet and I can't get them to work under Hyprland. It's not ideal if only these two IDE's can use video sharing on wayland

H-M-H commented 1 month ago

@dryBoneMarrow as far as I understand the Hyprland wiki about screen sharing it is supposed to work with xdg-desktop-portal and weylus should support that. This is the de-facto standard for screen sharing on Wayland, there is a list with supported DEs on the arch wiki: https://wiki.archlinux.org/title/XDG_Desktop_Portal#List_of_backends_and_interfaces

W1nKille3r commented 2 weeks ago

On KDE Neon 6.2, weylus just refuses to work: Failed to init screen cast! Tried to connect tablet directly through adb usb, and it only works with janky Wayland to X11 bridge.