Fix deprecation warnings

This commit is contained in:
2017-08-20 19:45:51 +01:00
parent ea11111810
commit e0e189f217

View File

@@ -323,7 +323,7 @@ wm.moveWindowToSpace = function (direction)
clickPoint.y = clickPoint.y + (clickPoint.h / 2) clickPoint.y = clickPoint.y + (clickPoint.h / 2)
local mouseClickEvent = hs.eventtap.event.newMouseEvent( local mouseClickEvent = hs.eventtap.event.newMouseEvent(
hs.eventtap.event.types.leftmousedown, clickPoint hs.eventtap.event.types.leftMouseDown, clickPoint
) )
mouseClickEvent:post() mouseClickEvent:post()
hs.timer.usleep(150000) hs.timer.usleep(150000)
@@ -341,7 +341,7 @@ wm.moveWindowToSpace = function (direction)
hs.timer.usleep(150000) hs.timer.usleep(150000)
local mouseReleaseEvent = hs.eventtap.event.newMouseEvent( local mouseReleaseEvent = hs.eventtap.event.newMouseEvent(
hs.eventtap.event.types.leftmouseup, clickPoint hs.eventtap.event.types.leftMouseUp, clickPoint
) )
mouseReleaseEvent:post() mouseReleaseEvent:post()
hs.timer.usleep(150000) hs.timer.usleep(150000)