io/pointer: added the grab cursor

Signed-off-by: pierre <pierre.curto@gmail.com>
This commit is contained in:
pierre
2021-02-07 20:48:30 +01:00
committed by Elias Naur
parent 6682f75db9
commit a581acf3fd
7 changed files with 22 additions and 7 deletions
+2
View File
@@ -930,6 +930,8 @@ func (w *window) SetCursor(name pointer.CursorName) {
name = "top_side"
case pointer.CursorColResize:
name = "left_side"
case pointer.CursorGrab:
name = "hand1"
}
cname := C.CString(string(name))
defer C.free(unsafe.Pointer(cname))