Fix size indication when moving shaded window.

SVN revision: 19239
This commit is contained in:
Kim Woelders 2005-12-22 18:46:03 +00:00
parent ff86323831
commit d655f4df96
1 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,9 @@ CoordsShow(EWin * ewin)
x = ewin->shape_x;
y = ewin->shape_y;
ICCCM_GetIncrementalSize(ewin, ewin->shape_w, ewin->shape_h, &w, &h);
w = (ewin->state.shaded) ? ewin->client.w : ewin->shape_w;
h = (ewin->state.shaded) ? ewin->client.h : ewin->shape_h;
ICCCM_GetIncrementalSize(ewin, w, h, &w, &h);
Esnprintf(s, sizeof(s), "%i x %i (%i, %i)", w, h, x, y);
TextSize(tc, 0, 0, 0, s, &cw, &ch, 17);