Revert "new WS ControlRequest data type"

This reverts commit 70e8b215cb.
This commit is contained in:
Miroslav Šedivý 2020-06-16 01:01:23 +02:00
parent 8113ce276c
commit 01564a57b5
5 changed files with 3 additions and 21 deletions

View file

@ -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)