aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/devdraw
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2020-01-15 11:09:16 -0500
committerRuss Cox <rsc@swtch.com>2020-01-15 11:09:16 -0500
commitba60bab3cd247284977ff99573db0c1f3d056953 (patch)
tree80a07999001431151bc7ca6318a9f76d7529e5cb /src/cmd/devdraw
parente75dbb6af8fbea53c62efb7176ed2d25a47557c9 (diff)
downloadplan9port-ba60bab3cd247284977ff99573db0c1f3d056953.tar.gz
plan9port-ba60bab3cd247284977ff99573db0c1f3d056953.tar.bz2
plan9port-ba60bab3cd247284977ff99573db0c1f3d056953.zip
devdraw: actually send resize event on resize
Fixes #340. Fixes #343.
Diffstat (limited to 'src/cmd/devdraw')
-rw-r--r--src/cmd/devdraw/srv.c7
1 files changed, 7 insertions, 0 deletions
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;