Class: XlibObj::Event::SelectionNotify

Inherits:
Object
  • Object
show all
Defined in:
lib/event/selection_notify.rb

Instance Method Summary collapse

Constructor Details

#initialize(type:, target:, property:) ⇒ SelectionNotify

Returns a new instance of SelectionNotify.



12
13
14
# File 'lib/event/selection_notify.rb', line 12

def initialize(type:, target:, property:)
  @type, @target, @property = type, target, property
end

Instance Method Details

#send_to(receiver) ⇒ Object



16
17
18
19
20
# File 'lib/event/selection_notify.rb', line 16

def send_to(receiver)
  Xlib.XSendEvent(receiver.display.to_native, receiver.to_native, false, 0, event(receiver))
ensure
  Xlib::X.flush(receiver.display)
end