From ba60bab3cd247284977ff99573db0c1f3d056953 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 15 Jan 2020 11:09:16 -0500 Subject: devdraw: actually send resize event on resize Fixes #340. Fixes #343. --- src/cmd/devdraw/srv.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/cmd') diff --git a/src/cmd/devdraw/srv.c b/src/cmd/devdraw/srv.c index c98a865f..570091bc 100644 --- a/src/cmd/devdraw/srv.c +++ b/src/cmd/devdraw/srv.c @@ -37,6 +37,8 @@ usage(void) void threadmain(int argc, char **argv) { + char *p; + ARGBEGIN{ case 'D': /* for good ps -a listings */ break; @@ -52,6 +54,10 @@ threadmain(int argc, char **argv) usage(); }ARGEND + fmtinstall('H', encodefmt); + if((p = getenv("DEVDRAWTRACE")) != nil) + trace = atoi(p); + if(srvname == nil) { client0 = mallocz(sizeof(Client), 1); if(client0 == nil){ @@ -417,6 +423,7 @@ gfx_mousetrack(Client *c, int x, int y, int b, uint ms) y = copy->xy.y; b = copy->buttons; ms = copy->msec; + c->mouse.resized = 1; } if(x < c->mouserect.min.x) x = c->mouserect.min.x; -- cgit v1.2.3