any1 / wlvncc

A Wayland Native VNC Client
ISC License
98 stars 16 forks source link

WIP: Implement the keyboard shortcuts inhibitor protocol #5

Open NDagestad opened 3 years ago

NDagestad commented 3 years ago

There are a few things still to do:

Also, keep in mind I have not implemented a wayland protocol before, so I did my best to follow what I thought the protocol said, and as it is quite a simple one, I hope I didn't screw it up to bad.

NDagestad commented 3 years ago

Here's a version where the inhibitor is put in a structure, the remaining things to do listed in my initial message are still not implemented yet, I'll see if I can get to do some of theme over the weekend

NDagestad commented 3 years ago

Sorry for the long delay I did not expect to have so little time to work on this. It turns out that this is not the right protocol to implement, I should have used the keyboard_shortcuts_inhibit_unstabe protocol instead which has the benefit of not being wlroots specific This update is not handling seats correctly so multi seat setups will not work. I saw you are capping the line length as 80, I tried to stay close to that but a few lines are a little longer.