devdraw: actually send resize event on resize

Fixes #340.
Fixes #343.
This commit is contained in:
Russ Cox 2020-01-15 11:09:16 -05:00
parent e75dbb6af8
commit ba60bab3cd

View file

@ -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;