mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
Fix deprecation warnings
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user