Fixed mouse cursor bug.
If the Run loop was non-blocking (wait set to false) the cursor was reset back to the default.
This commit is contained in:
parent
a6bb05794f
commit
3bd4001cc3
@ -54,7 +54,10 @@ func (r *Renderer) PushEvents(t ui.EventTarget, wait bool) {
|
|||||||
|
|
||||||
r.newCursor = ui.MouseCursorDefault
|
r.newCursor = ui.MouseCursorDefault
|
||||||
var ev = eventWait(r.eq, wait)
|
var ev = eventWait(r.eq, wait)
|
||||||
for nil != ev {
|
if ev == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
for ev != nil {
|
||||||
switch e := ev.(type) {
|
switch e := ev.(type) {
|
||||||
case *allg5.DisplayCloseEvent:
|
case *allg5.DisplayCloseEvent:
|
||||||
t.Handle(&ui.DisplayCloseEvent{EventBase: eventBase(e)})
|
t.Handle(&ui.DisplayCloseEvent{EventBase: eventBase(e)})
|
||||||
|
Loading…
Reference in New Issue
Block a user