aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;