ruby-x11/example/client_message.rb
Vidar Hokstad da2fe51596 Cleanups, more automated lookups of atoms to avoid needing to dereference constants.
More constants and requestsm including SendEvent, and
a helper for ClientMessage, w/example
2024-01-11 19:24:49 +00:00

13 lines
275 B
Ruby

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'X11'
display = X11::Display.new
display.client_message(
mask: X11::Form::SubstructureNotifyMask | X11::Form::SubstructureRedirectMask,
type: :_NET_CURRENT_DESKTOP,
data: ARGV.shift.to_i
)