mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-28 16:37:15 +02:00
Add Xorg modifiers (#57)
* implement additional modifiers to xorg. * xorg modifiers to API. * update modifiers api & add ws. * scroll pos rename to delta and add ctrl key.
This commit is contained in:
parent
a392163819
commit
4da7869e70
13 changed files with 166 additions and 89 deletions
|
@ -12,10 +12,7 @@ func (h *MessageHandlerCtx) keyboardMap(session types.Session, payload *message.
|
|||
return errors.New("is not the host")
|
||||
}
|
||||
|
||||
return h.desktop.SetKeyboardMap(types.KeyboardMap{
|
||||
Layout: payload.Layout,
|
||||
Variant: payload.Variant,
|
||||
})
|
||||
return h.desktop.SetKeyboardMap(payload.KeyboardMap)
|
||||
}
|
||||
|
||||
func (h *MessageHandlerCtx) keyboardModifiers(session types.Session, payload *message.KeyboardModifiers) error {
|
||||
|
@ -23,10 +20,6 @@ func (h *MessageHandlerCtx) keyboardModifiers(session types.Session, payload *me
|
|||
return errors.New("is not the host")
|
||||
}
|
||||
|
||||
h.desktop.SetKeyboardModifiers(types.KeyboardModifiers{
|
||||
NumLock: payload.NumLock,
|
||||
CapsLock: payload.CapsLock,
|
||||
})
|
||||
|
||||
h.desktop.SetKeyboardModifiers(payload.KeyboardModifiers)
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue