C file -- use C variable declarations at the top of the block
svn path=/trunk/KDE/kdebase/kwin/; revision=431747
This commit is contained in:
parent
84efa15bbd
commit
78a67cdab4
1 changed files with 2 additions and 1 deletions
|
@ -1822,6 +1822,7 @@ add_win (Display *dpy, Window id, Window prev)
|
||||||
{
|
{
|
||||||
win *new = malloc (sizeof (win));
|
win *new = malloc (sizeof (win));
|
||||||
win **p;
|
win **p;
|
||||||
|
unsigned int tmp;
|
||||||
|
|
||||||
if (!new)
|
if (!new)
|
||||||
return;
|
return;
|
||||||
|
@ -1882,7 +1883,7 @@ add_win (Display *dpy, Window id, Window prev)
|
||||||
new->shadowSize = get_shadow_prop (dpy, new);
|
new->shadowSize = get_shadow_prop (dpy, new);
|
||||||
new->shapable = get_shapable_prop(dpy, new);
|
new->shapable = get_shapable_prop(dpy, new);
|
||||||
new->decoHash = get_decoHash_prop(dpy, new);
|
new->decoHash = get_decoHash_prop(dpy, new);
|
||||||
unsigned int tmp = get_dim_prop(dpy, new);
|
tmp = get_dim_prop(dpy, new);
|
||||||
new->dimPicture = (tmp < OPAQUE) ? solid_picture (dpy, True, (double)tmp/OPAQUE, 0.1, 0.1, 0.1) : None;
|
new->dimPicture = (tmp < OPAQUE) ? solid_picture (dpy, True, (double)tmp/OPAQUE, 0.1, 0.1, 0.1) : None;
|
||||||
new->windowType = determine_wintype (dpy, new->id);
|
new->windowType = determine_wintype (dpy, new->id);
|
||||||
determine_mode (dpy, new);
|
determine_mode (dpy, new);
|
||||||
|
|
Loading…
Reference in a new issue