abduco

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit bb7e4e77f466fd9d01244484b7328587484881ed
parent 17b386e93f258223a5da0b8a3392b39e26637bd1
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Sat, 17 Mar 2018 18:38:50 +0100

Remove MSG_REDRAW it was actually never sent by the client

Diffstat:
abduco.c | 3+--
debug.c | 1-
server.c | 3+--
3 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/abduco.c b/abduco.c @@ -67,8 +67,7 @@ enum PacketType { MSG_ATTACH = 1, MSG_DETACH = 2, MSG_RESIZE = 3, - MSG_REDRAW = 4, - MSG_EXIT = 5, + MSG_EXIT = 4, }; typedef struct { diff --git a/debug.c b/debug.c @@ -16,7 +16,6 @@ static void print_packet(const char *prefix, Packet *pkt) { [MSG_ATTACH] = "ATTACH", [MSG_DETACH] = "DETACH", [MSG_RESIZE] = "RESIZE", - [MSG_REDRAW] = "REDRAW", [MSG_EXIT] = "EXIT", }; const char *type = "UNKNOWN"; diff --git a/server.c b/server.c @@ -221,8 +221,7 @@ static void server_mainloop(void) { break; case MSG_RESIZE: c->state = STATE_ATTACHED; - case MSG_REDRAW: - if (!(c->flags & CLIENT_READONLY) && (client_packet.type == MSG_REDRAW || c == server.clients)) { + if (!(c->flags & CLIENT_READONLY) && c == server.clients) { debug("server-ioct: TIOCSWINSZ\n"); struct winsize ws = { 0 }; ws.ws_row = client_packet.u.ws.rows;