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.4 by ayin, Fri Sep 14 09:38:33 2007 UTC vs.
Revision 1.6 by sasha, Thu Sep 20 22:15:02 2007 UTC

862 else 862 else
863 {/* strightforward pixmap copy */ 863 {/* strightforward pixmap copy */
864 gcv.tile = root_pixmap; 864 gcv.tile = root_pixmap;
865 gcv.fill_style = FillTiled; 865 gcv.fill_style = FillTiled;
866 866
867 while (sx < 0) sx += (int)window_width; 867 while (sx < 0) sx += (int)root_width;
868 while (sy < 0) sy += (int)window_height; 868 while (sy < 0) sy += (int)root_height;
869 869
870 gcv.ts_x_origin = -sx; 870 gcv.ts_x_origin = -sx;
871 gcv.ts_y_origin = -sy; 871 gcv.ts_y_origin = -sy;
872 gc = XCreateGC (dpy, root, GCFillStyle | GCTile | GCTileStipXOrigin | GCTileStipYOrigin, &gcv); 872 gc = XCreateGC (dpy, root, GCFillStyle | GCTile | GCTileStipXOrigin | GCTileStipYOrigin, &gcv);
873 873
1217# if HAVE_SCROLLBARS 1217# if HAVE_SCROLLBARS
1218 if (target->scrollBar.win) 1218 if (target->scrollBar.win)
1219 XSetWindowBackground (target->dpy, target->scrollBar.win, target->pix_colors[Color_border]); 1219 XSetWindowBackground (target->dpy, target->scrollBar.win, target->pix_colors[Color_border]);
1220# endif 1220# endif
1221 } 1221 }
1222 1222 /* don't want Expose on the parent or vt. It is better to use
1223 /* don't want Expose on the parent */ 1223 scr_touch or we get a great deal of flicker otherwise: */
1224 XClearArea (target->dpy, target->parent[0], 0, 0, 0, 0, False); 1224 XClearWindow (target->dpy, target->parent[0]);
1225 /* do want Expose on the vt, so we get refreshed properly */
1226 XClearArea (target->dpy, target->vt, 0, 0, 0, 0, True);
1227 1225
1228# if HAVE_SCROLLBARS 1226# if HAVE_SCROLLBARS
1229 if (target->scrollBar.win) 1227 if (target->scrollBar.win)
1230 { 1228 {
1231 target->scrollBar.setIdle (); 1229 target->scrollBar.setIdle ();
1232 target->scrollbar_show (0); 1230 target->scrollbar_show (0);
1233 } 1231 }
1234# endif 1232# endif
1233
1234 target->want_refresh = 1;
1235 flags |= hasChanged;
1235 } 1236 }
1236} 1237}
1237 1238
1238#endif /* HAVE_BG_PIXMAP */ 1239#endif /* HAVE_BG_PIXMAP */
1239 1240

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines