-
Notifications
You must be signed in to change notification settings - Fork 41
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
Wayland #28
Comments
https://github.com/Ac5000/electron-overlay-window/tree/wayland Trying to Help! (But, I'm a bad programmer.)This write-up can also be found in the "wayland" branch, under the "wayland" Thank YouTo start, I am a user of awakened-poe-trade and I would like to thank you for BackgroundI recently switched from Linux Mint (X11) to Hyprland (Wayland). I looked through the issues on APT to see if I could find anything and then I then found this Issue #28 when troubleshooting and decided I would try to I tried to see if I could figure things out, but realized I was in over my head, Willing to HelpPlease let me know how I can help! I can run tests for you, hunt down information, etc. My pc can be booted into Windows 10, Linux Mint (X11), Arch Linux with Hyprland ReferencesLinks to references that may help:
Overlay X11 RequirementsFrom what I have seen stated in README.md, you need: for the X11 implementation? Let me know if that's correct, and if there's other things you need? I will Something you may need to look into is how Wayland does global shortcuts. X11 Reqs -> WaylandWhat I am attempting to do here is translate the X11 requirements to their My intention is that you will see these and understand how to implement them _NET_ACTIVE_WINDOWI need more details for this one. Are you using this to see if the overlay is _NET_WM_STATE_FULLSCREENExample of this can be seen in main.c line 106:
Line 112 shows unsetting:
_NET_WM_NAMEExample of this can be seen in main.c line 244:
Global ShortcutsFor security purposes, Wayland doesn't just give every window the current Because of this, xdg-desktop-portal Electron is aware of this as well and has this open issue Included FilesIn the wayland directory of the wayland branch, I have included a few files.
|
_NET_ACTIVE_WINDOW to get currently active window, _NET_WM_NAME to get the name of that window, _NET_WM_STATE_FULLSCREEN to know whether it's in fullscreen, but this one is needed for X11 behaviour, maybe can be skipped in wayland. |
Thank you for the information and sorry for the delayed response, league start has consumed my available time to work on this. However, I am almost done with my 40 challenges and plan to come back to this hopefully soon. I wanted to let you know that I am trying to get an example working with your "demo" using Rust. There are multiple Rust libraries created that handle most of the Wayland and XDG backends and it's simplified things down tremendously. It is slow going though as I am having to learn Rust along the way. But I do have a test program partially working that makes a window, displays something, gets/sets the name of the window, and sets up global shortcuts with xdg-desktop-portal. Next steps are linking into the electron side of "overlay-window" and seeing if I can get the demo to work. Once I get things working, I will add a link to the repo with a write-up that shows what's going on. |
It may be possible to implement at least on KDE? https://wayland.app/protocols/kde-plasma-window-management
The text was updated successfully, but these errors were encountered: