plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit ba60bab3cd247284977ff99573db0c1f3d056953
parent e75dbb6af8fbea53c62efb7176ed2d25a47557c9
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:
Msrc/cmd/devdraw/srv.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git 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;