mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
devdraw: set windowrect correctly on x11 if window gets unexpected size
Fixes #54.
This commit is contained in:
parent
ba60bab3cd
commit
fe2b2de984
1 changed files with 2 additions and 2 deletions
|
@ -550,8 +550,6 @@ xattach(Client *client, char *label, char *winsize)
|
|||
havemin = 0;
|
||||
}
|
||||
w = newxwin(client);
|
||||
w->screenrect = Rect(0, 0, WidthOfScreen(xscreen), HeightOfScreen(xscreen));
|
||||
w->windowrect = r;
|
||||
|
||||
memset(&attr, 0, sizeof attr);
|
||||
attr.colormap = _x.cmap;
|
||||
|
@ -679,6 +677,8 @@ xattach(Client *client, char *label, char *winsize)
|
|||
}
|
||||
}else
|
||||
fprint(2, "XGetWindowAttributes: bad attrs\n");
|
||||
w->screenrect = Rect(0, 0, WidthOfScreen(xscreen), HeightOfScreen(xscreen));
|
||||
w->windowrect = r;
|
||||
|
||||
/*
|
||||
* Allocate our local backing store.
|
||||
|
|
Loading…
Reference in a new issue