moaxcp / x11

An x11 protocol implementation and client for the jvm
MIT License
18 stars 3 forks source link

XGrabKeyboard support #25

Open blak3mill3r opened 6 months ago

blak3mill3r commented 6 months ago

At a glance I couldn't find any evidence that XGrabKeyboard is supported. Did I miss something? What would it take to add it?

moaxcp commented 6 months ago

Yes the way the code is generated removes the need for a bunch of methods in the client unlike the C client. The requests are classes that are passed the send method of the client.

For XGrabKeyboard you create a GrabKeyboard object and use the send method on the client. The code is generated so you wont see it in github but you can check the javadocs for the supported requests.