moaxcp / x11

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

Add support for extra attributes #11

Closed moaxcp closed 12 months ago

moaxcp commented 3 years ago

Optional values are defined in a switch element with bit cases in the protocol. These are added to each pojo and used in the read and write methods. It is possible for x11 extensions to add fields to one of these switch elements dynamically. To support this in java a new list of Integers can be added for each of these fields.

Each field in a bitcase is 32 bits The field is only sent if the bit for the field is set in the value mask.

moaxcp commented 12 months ago

I'm not sure this is actually true. I haven't seen this in any of the extensions.