mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-18 03:27:03 +02:00
muxed interactions with xserver, fix for #28?
This commit is contained in:
parent
3fc7737442
commit
2680a1f702
8 changed files with 71 additions and 63 deletions
|
@ -9,7 +9,7 @@ import (
|
|||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
|
||||
"n.eko.moe/neko/internal/clip"
|
||||
"n.eko.moe/neko/internal/hid"
|
||||
"n.eko.moe/neko/internal/types"
|
||||
"n.eko.moe/neko/internal/types/config"
|
||||
"n.eko.moe/neko/internal/types/event"
|
||||
|
@ -81,7 +81,7 @@ func (ws *WebSocketHandler) Start() error {
|
|||
ws.logger.Info().Msg("shutdown")
|
||||
}()
|
||||
|
||||
current := clip.Read()
|
||||
current := hid.ReadClipboard()
|
||||
|
||||
for {
|
||||
select {
|
||||
|
@ -89,7 +89,7 @@ func (ws *WebSocketHandler) Start() error {
|
|||
return
|
||||
default:
|
||||
if ws.sessions.HasHost() {
|
||||
text := clip.Read()
|
||||
text := hid.ReadClipboard()
|
||||
if text != current {
|
||||
session, ok := ws.sessions.GetHost()
|
||||
if ok {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue