Method: XDo::Window#resize

Defined in:
lib/x_do/window.rb

#resize(width, height, use_hints = false) ⇒ Object

Resizes this window.

Args:

width:: the new window's width
height:: the new window's height
use_hints:: if false, width and height are specified in pixels; otherwise,
            the unit is relative to window size hints


78
79
80
81
82
83
84
85
86
# File 'lib/x_do/window.rb', line 78

def resize(width, height, use_hints = false)
  old_size = self.size
  return_value = resize_async width, height, use_hints
  100.times do
    break unless self.size == old_size
    sleep 0.01
  end
  return_value
end