mirror of
https://github.com/vidarh/ruby-x11
synced 2024-11-16 07:48:12 +01:00
da2fe51596
More constants and requestsm including SendEvent, and a helper for ClientMessage, w/example
14 lines
291 B
Ruby
14 lines
291 B
Ruby
module X11
|
|
module Protocol
|
|
# endianess of your machine
|
|
BYTE_ORDER = case [1].pack("L")
|
|
when "\0\0\0\1" then "B".ord
|
|
when "\1\0\0\0" then "l".ord
|
|
else
|
|
raise ByteOrderError.new "Cannot determine byte order"
|
|
end
|
|
|
|
MAJOR = 11
|
|
MINOR = 0
|
|
end
|
|
end
|