--- rxvt-unicode/src/init.C 2011/01/03 03:05:47 1.289 +++ rxvt-unicode/src/init.C 2011/04/07 12:19:40 1.294 @@ -12,7 +12,7 @@ * Copyright (c) 1997,1998 Oezguer Kesim * Copyright (c) 1998-2001 Geoff Wing * - extensive modifications - * Copyright (c) 2003-2008 Marc Lehmann + * Copyright (c) 2003-2008 Marc Lehmann * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -62,10 +62,13 @@ #include #include -/* these next is probably only on Sun (not Solaris) */ +/* these next two are probably only on Sun (not Solaris) */ #ifdef HAVE_SYS_SOCKIO_H #include #endif +#ifdef HAVE_SYS_BYTEORDER_H +#include +#endif #include #include @@ -810,24 +813,23 @@ scrollBar.resize (); /* create and map scrollbar */ #ifdef HAVE_BG_PIXMAP { - bgPixmap.set_target (this); - bgPixmap.invalidate (); + bg_init (); #ifdef ENABLE_TRANSPARENCY if (option (Opt_transparent)) { - bgPixmap.set_transparent (); + bg_set_transparent (); if (rs [Rs_blurradius]) - bgPixmap.set_blur_radius (rs [Rs_blurradius]); + bg_set_blur (rs [Rs_blurradius]); if (ISSET_PIXCOLOR (Color_tint)) - bgPixmap.set_tint (pix_colors_focused [Color_tint]); + bg_set_tint (pix_colors_focused [Color_tint]); if (rs [Rs_shade]) - bgPixmap.set_shade (rs [Rs_shade]); + bg_set_shade (rs [Rs_shade]); - bgPixmap.set_root_pixmap (); + bg_set_root_pixmap (); XSelectInput (dpy, display->root, PropertyChangeMask); rootwin_ev.start (display, display->root); } @@ -841,13 +843,13 @@ if ((p = strchr (p, ';')) != 0) { p++; - bgPixmap.set_geometry (p); + bg_set_geometry (p); } else - bgPixmap.set_defaultGeometry (); + bg_set_default_geometry (); - if (bgPixmap.set_file (rs[Rs_backgroundPixmap])) - if (!bgPixmap.window_position_sensitive ()) + if (bg_set_file (rs[Rs_backgroundPixmap])) + if (!bg_window_position_sensitive ()) update_background (); } #endif @@ -874,13 +876,13 @@ { long info[2] = { 0, XEMBED_MAPPED }; - XChangeProperty (dpy, parent[0], xa[XA_XEMBED_INFO], xa[XA_XEMBED_INFO], + XChangeProperty (dpy, parent, xa[XA_XEMBED_INFO], xa[XA_XEMBED_INFO], 32, PropModeReplace, (unsigned char *)&info, 2); } #endif XMapWindow (dpy, vt); - XMapWindow (dpy, parent[0]); + XMapWindow (dpy, parent); refresh_check (); } @@ -916,7 +918,7 @@ sprintf (env_display, "DISPLAY=%s", val); - sprintf (env_windowid, "WINDOWID=%lu", (unsigned long)parent[0]); + sprintf (env_windowid, "WINDOWID=%lu", (unsigned long)parent); /* add entries to the environment: * @ DISPLAY: in case we started with -display @@ -1323,7 +1325,7 @@ for (unsigned int i = 0; i < w * h; ++i) buffer [i + 2] = asbuf [i]; - XChangeProperty (dpy, parent[0], xa[XA_NET_WM_ICON], XA_CARDINAL, 32, + XChangeProperty (dpy, parent, xa[XA_NET_WM_ICON], XA_CARDINAL, 32, PropModeReplace, (const unsigned char *) buffer, 2 + w * h); free (buffer); } @@ -1380,7 +1382,7 @@ row += rowstride; } - XChangeProperty (dpy, parent[0], xa[XA_NET_WM_ICON], XA_CARDINAL, 32, + XChangeProperty (dpy, parent, xa[XA_NET_WM_ICON], XA_CARDINAL, 32, PropModeReplace, (const unsigned char *) buffer, 2 + w * h); free (buffer); } @@ -1461,7 +1463,7 @@ CWColormap | CWBackPixel | CWBorderPixel | CWOverrideRedirect, &attributes); - this->parent[0] = top; + this->parent = top; old_width = szHint.width; old_height = szHint.height;