grab set ?-global? window
Sets a grab on window. If -global is specified then the grab is global, otherwise it is local. If a grab was already in effect for this application on window 's display then it is automatically released. If there is already a grab on window and it has the same global/local form as the requested grab, then the command does nothing. Returns an empty string.