mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 17:05:38 +00:00
io/pointer: added CursorNameOp
The cursor can now be customized for a given area. Signed-off-by: pierre <pierre.curto@gmail.com>
This commit is contained in:
+6
-1
@@ -48,7 +48,8 @@ type Window struct {
|
||||
nextFrame time.Time
|
||||
delayedDraw *time.Timer
|
||||
|
||||
queue queue
|
||||
queue queue
|
||||
cursor pointer.CursorName
|
||||
|
||||
callbacks callbacks
|
||||
}
|
||||
@@ -414,6 +415,10 @@ func (w *Window) run(opts *window.Options) {
|
||||
w.setNextFrame(time.Time{})
|
||||
w.updateAnimation()
|
||||
}
|
||||
if c := w.queue.q.Cursor(); c != w.cursor {
|
||||
w.cursor = c
|
||||
w.SetCursorName(c)
|
||||
}
|
||||
w.out <- e
|
||||
}
|
||||
w.ack <- struct{}{}
|
||||
|
||||
Reference in New Issue
Block a user