tdevdraw: actually send resize event on resize - plan9port - [fork] Plan 9 from user space (HTM) git clone git://src.adamsgaard.dk/plan9port (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit ba60bab3cd247284977ff99573db0c1f3d056953 (DIR) parent e75dbb6af8fbea53c62efb7176ed2d25a47557c9 (HTM) Author: Russ Cox <rsc@swtch.com> Date: Wed, 15 Jan 2020 11:09:16 -0500 devdraw: actually send resize event on resize Fixes #340. Fixes #343. Diffstat: M src/cmd/devdraw/srv.c | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) --- (DIR) diff --git a/src/cmd/devdraw/srv.c b/src/cmd/devdraw/srv.c t@@ -37,6 +37,8 @@ usage(void) void threadmain(int argc, char **argv) { + char *p; + ARGBEGIN{ case 'D': /* for good ps -a listings */ break; t@@ -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){ t@@ -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;