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 void
threadmain(int argc, char **argv) threadmain(int argc, char **argv)
{ {
char *p;
ARGBEGIN{ ARGBEGIN{
case 'D': /* for good ps -a listings */ case 'D': /* for good ps -a listings */
break; break;
@ -52,6 +54,10 @@ threadmain(int argc, char **argv)
usage(); usage();
}ARGEND }ARGEND
fmtinstall('H', encodefmt);
if((p = getenv("DEVDRAWTRACE")) != nil)
trace = atoi(p);
if(srvname == nil) { if(srvname == nil) {
client0 = mallocz(sizeof(Client), 1); client0 = mallocz(sizeof(Client), 1);
if(client0 == nil){ if(client0 == nil){
@ -417,6 +423,7 @@ gfx_mousetrack(Client *c, int x, int y, int b, uint ms)
y = copy->xy.y; y = copy->xy.y;
b = copy->buttons; b = copy->buttons;
ms = copy->msec; ms = copy->msec;
c->mouse.resized = 1;
} }
if(x < c->mouserect.min.x) if(x < c->mouserect.min.x)
x = c->mouserect.min.x; x = c->mouserect.min.x;