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
13 lines
275 B
Ruby
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
|
|
)
|
|
|