ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/background.C
(Generate patch)

Comparing rxvt-unicode/src/background.C (file contents):
Revision 1.26 by root, Wed Jan 23 11:10:27 2008 UTC vs.
Revision 1.27 by ayin, Sun Jan 27 22:48:33 2008 UTC

1290# ifdef ENABLE_TRANSPARENCY 1290# ifdef ENABLE_TRANSPARENCY
1291 if (flags & isTransparent) 1291 if (flags & isTransparent)
1292 { 1292 {
1293 XSetWindowBackgroundPixmap (target->dpy, target->parent[0], pixmap); 1293 XSetWindowBackgroundPixmap (target->dpy, target->parent[0], pixmap);
1294 XSetWindowBackgroundPixmap (target->dpy, target->vt, ParentRelative); 1294 XSetWindowBackgroundPixmap (target->dpy, target->vt, ParentRelative);
1295# if HAVE_SCROLLBARS
1296 if (target->scrollBar.win) 1295 if (target->scrollBar.win)
1297 XSetWindowBackgroundPixmap (target->dpy, target->scrollBar.win, ParentRelative); 1296 XSetWindowBackgroundPixmap (target->dpy, target->scrollBar.win, ParentRelative);
1298# endif
1299 } 1297 }
1300 else 1298 else
1301# endif 1299# endif
1302 { 1300 {
1303 flags |= isVtOrigin; 1301 flags |= isVtOrigin;
1304 /* force old pixmap dereference in case it was transparent before :*/ 1302 /* force old pixmap dereference in case it was transparent before :*/
1305 XSetWindowBackground (target->dpy, target->parent[0], target->pix_colors[Color_border]); 1303 XSetWindowBackground (target->dpy, target->parent[0], target->pix_colors[Color_border]);
1306 XSetWindowBackgroundPixmap (target->dpy, target->vt, pixmap); 1304 XSetWindowBackgroundPixmap (target->dpy, target->vt, pixmap);
1307 /* do we also need to set scrollbar's background here ? */ 1305 /* do we also need to set scrollbar's background here ? */
1308# if HAVE_SCROLLBARS
1309 if (target->scrollBar.win) 1306 if (target->scrollBar.win)
1310 XSetWindowBackground (target->dpy, target->scrollBar.win, target->pix_colors[Color_border]); 1307 XSetWindowBackground (target->dpy, target->scrollBar.win, target->pix_colors[Color_border]);
1311# endif
1312 } 1308 }
1313 } 1309 }
1314 else 1310 else
1315 { 1311 {
1316 /* set target background to a pixel */ 1312 /* set target background to a pixel */
1317 XSetWindowBackground (target->dpy, target->parent[0], target->pix_colors[Color_border]); 1313 XSetWindowBackground (target->dpy, target->parent[0], target->pix_colors[Color_border]);
1318 XSetWindowBackground (target->dpy, target->vt, target->pix_colors[Color_bg]); 1314 XSetWindowBackground (target->dpy, target->vt, target->pix_colors[Color_bg]);
1319 /* do we also need to set scrollbar's background here ? */ 1315 /* do we also need to set scrollbar's background here ? */
1320# if HAVE_SCROLLBARS
1321 if (target->scrollBar.win) 1316 if (target->scrollBar.win)
1322 XSetWindowBackground (target->dpy, target->scrollBar.win, target->pix_colors[Color_border]); 1317 XSetWindowBackground (target->dpy, target->scrollBar.win, target->pix_colors[Color_border]);
1323# endif
1324 } 1318 }
1325 /* don't want Expose on the parent or vt. It is better to use 1319 /* don't want Expose on the parent or vt. It is better to use
1326 scr_touch or we get a great deal of flicker otherwise: */ 1320 scr_touch or we get a great deal of flicker otherwise: */
1327 XClearWindow (target->dpy, target->parent[0]); 1321 XClearWindow (target->dpy, target->parent[0]);
1328 1322
1329# if HAVE_SCROLLBARS
1330 if (target->scrollBar.win) 1323 if (target->scrollBar.win)
1331 { 1324 {
1332 target->scrollBar.setIdle (); 1325 target->scrollBar.setIdle ();
1333 target->scrollbar_show (0); 1326 target->scrollbar_show (0);
1334 } 1327 }
1335# endif
1336 1328
1337 target->want_refresh = 1; 1329 target->want_refresh = 1;
1338 flags |= hasChanged; 1330 flags |= hasChanged;
1339 } 1331 }
1340} 1332}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines