mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
inactive cursors to config.
This commit is contained in:
@ -312,6 +312,10 @@ func (manager *SessionManagerCtx) ImplicitHosting() bool {
|
||||
return manager.config.ImplicitHosting
|
||||
}
|
||||
|
||||
func (manager *SessionManagerCtx) InactiveCursors() bool {
|
||||
return manager.config.InactiveCursors
|
||||
}
|
||||
|
||||
func (manager *SessionManagerCtx) CookieEnabled() bool {
|
||||
return manager.config.CookieEnabled
|
||||
}
|
||||
|
@ -54,7 +54,9 @@ func (session *SessionCtx) IsHost() bool {
|
||||
}
|
||||
|
||||
func (session *SessionCtx) SetCursor(cursor types.Cursor) {
|
||||
session.manager.SetCursor(cursor, session)
|
||||
if session.manager.InactiveCursors() {
|
||||
session.manager.SetCursor(cursor, session)
|
||||
}
|
||||
}
|
||||
|
||||
// ---
|
||||
|
Reference in New Issue
Block a user