wsdfhjxc / virtual-desktop-bar

A pager panel widget for KDE Plasma
GNU General Public License v3.0
322 stars 29 forks source link

Wayland support #64

Open lenonk opened 2 years ago

lenonk commented 2 years ago

Hey there. I have this working with Wayland...mostly. The functionality works, but the widget doesn't update on change. I was curious, once I get it working completely, would you be interested in a pull request?

For full disclosure, I haven't touched any of your X11 code. I'm not really sure how it all works and I didn't want to break anything, so everything is basically: If (wayland) { ... } else if (X11) { }

It probably doesn't need to be that way, as pulling in TaskManager::VirtualDesktopInfo can probably replace a good portion of your existing code, but as I said, I didn't want to break anything. If you're interested in the pull request, I might start playing with that anyway.

I'm not terribly familiar with writing code for X11, Wayland or KDE, I'm mostly a backend guy (I write IDS software for a living), but if you're interested, I'll send you a pull request relatively soon.

Thanks!