Class: Tiling::Mover

Inherits:
Object
  • Object
show all
Defined in:
lib/tiling/mover.rb

Overview

Move a window.

Class Method Summary collapse

Class Method Details

.move(id, x, y, width, height) ⇒ Object



6
7
8
9
10
# File 'lib/tiling/mover.rb', line 6

def self.move id, x, y, width, height
  WMCtrl.instance.action_window(id, :change_state, 'remove', 'fullscreen')
  WMCtrl.instance.action_window(id, :change_state, 'remove', 'maximized_horz', 'maximized_vert')
  WMCtrl.instance.action_window(id, :move_resize, 0, x, y, width, height)
end