mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-03 03:12:41 +02:00
Revert "new WS ControlRequest data type"
This reverts commit 70e8b215cb
.
This commit is contained in:
parent
8113ce276c
commit
01564a57b5
5 changed files with 3 additions and 21 deletions
|
@ -31,13 +31,9 @@ func (h *MessageHandler) controlRelease(id string, session types.Session) error
|
|||
return nil
|
||||
}
|
||||
|
||||
func (h *MessageHandler) controlRequest(id string, session types.Session, payload *message.ControlRequest) error {
|
||||
func (h *MessageHandler) controlRequest(id string, session types.Session) error {
|
||||
// check for host
|
||||
if !h.sessions.HasHost() {
|
||||
// keyboard layout change
|
||||
h.logger.Debug().Msgf("change keyboard to %s", payload.KeyboardLayout)
|
||||
h.remote.SetKeyboard(payload.KeyboardLayout)
|
||||
|
||||
// set host
|
||||
h.sessions.SetHost(id)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue