Lock cursor to window

Any smarties able to fix my macro to lock it? it used to be `/click InterfaceOptionsMousePanelLockCursorToScreen but it doesn’t work anymore

/run local k,v = "ClipCursor" v = C_CVar.GetCVar(k) C_CVar.SetCVar(k, 1 - v) print("Cursor Locked to Screen " .. (v == "1" and "Disabled" or "Enabled"))
3 Likes

Life saver!!