defn vars at the top of funcs

This commit is contained in:
Dana Jansens 2003-03-21 10:33:26 +00:00
parent cd1694cd1c
commit d33dce4827

View file

@ -423,13 +423,14 @@ void screen_show_desktop(gboolean show)
void screen_install_colormap(Client *client, gboolean install)
{
XWindowAttributes wa;
if (client == NULL) {
if (install)
XInstallColormap(ob_display, render_colormap);
else
XUninstallColormap(ob_display, render_colormap);
} else {
XWindowAttributes wa;
if (XGetWindowAttributes(ob_display, client->window, &wa) &&
wa.colormap != None) {
if (install)