Skip to content

Commit

Permalink
Merge pull request #9 from thiagokokada/fix-set-cursors
Browse files Browse the repository at this point in the history
  • Loading branch information
labi-le authored Jul 22, 2024
2 parents 04557a5 + 442f0a3 commit dc71d27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ipc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package client
import (
"encoding/json"
"errors"
"fmt"
"io"
"net"
"os"
Expand Down Expand Up @@ -253,8 +254,7 @@ func (c *IPCClient) Reload() error {

func (c *IPCClient) SetCursor(theme, size string) error {
q := NewByteQueue()
q.Add(UnsafeBytes(theme))
q.Add(UnsafeBytes(size))
q.Add(UnsafeBytes(fmt.Sprintf("%s %s", theme, size)))
q.command = []byte("setcursor")

_, err := c.request(q)
Expand Down

0 comments on commit dc71d27

Please sign in to comment.