From bb7e4e77f466fd9d01244484b7328587484881ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 17 Mar 2018 18:38:50 +0100 Subject: [PATCH] Remove MSG_REDRAW it was actually never sent by the client --- abduco.c | 3 +-- debug.c | 1 - server.c | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/abduco.c b/abduco.c index a288490..b246171 100644 --- 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 index ede5add..080a519 100644 --- 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 index 6f62cfb..d6c7985 100644 --- 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;