Merge pull request #1698 from Airblader/feature-1696

Added 'move position mouse'
This commit is contained in:
Michael Stapelberg
2015-05-17 15:02:50 +02:00
7 changed files with 262 additions and 23 deletions

View File

@ -271,6 +271,7 @@ state RENAME_WORKSPACE_NEW_NAME:
# move workspace to [output] <str>
# move scratchpad
# move [window|container] [to] [absolute] position [ [<pixels> [px] <pixels> [px]] | center ]
# move [window|container] [to] position mouse|cursor|pointer
state MOVE:
'window'
->
@ -342,6 +343,8 @@ state MOVE_TO_ABSOLUTE_POSITION:
state MOVE_TO_POSITION:
'center'
-> call cmd_move_window_to_center($method)
'mouse', 'cursor', 'pointer'
-> call cmd_move_window_to_mouse()
coord_x = word
-> MOVE_TO_POSITION_X