From 78a67cdab4e21116fb524abbfc8111019f25afcc Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 5 Jul 2005 06:02:02 +0000 Subject: [PATCH] C file -- use C variable declarations at the top of the block svn path=/trunk/KDE/kdebase/kwin/; revision=431747 --- kompmgr/kompmgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kompmgr/kompmgr.c b/kompmgr/kompmgr.c index 0b0247ef02..1aeeffc267 100644 --- a/kompmgr/kompmgr.c +++ b/kompmgr/kompmgr.c @@ -1822,6 +1822,7 @@ add_win (Display *dpy, Window id, Window prev) { win *new = malloc (sizeof (win)); win **p; + unsigned int tmp; if (!new) return; @@ -1882,7 +1883,7 @@ add_win (Display *dpy, Window id, Window prev) new->shadowSize = get_shadow_prop (dpy, new); new->shapable = get_shapable_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->windowType = determine_wintype (dpy, new->id); determine_mode (dpy, new);