fixed root background offset when left-top corner of the window is outside of the...
authorsasha <sasha>
Thu, 20 Sep 2007 22:15:02 +0000 (22:15 +0000)
committersasha <sasha>
Thu, 20 Sep 2007 22:15:02 +0000 (22:15 +0000)
src/background.C

index 26c808431ac87786b50b472f2827ab02939f3765..cfe10da3611e60a228bf34b9251968fc9a947bde 100644 (file)
@@ -864,8 +864,8 @@ bgPixmap_t::make_transparency_pixmap ()
       gcv.tile = root_pixmap;
       gcv.fill_style = FillTiled;
 
-      while (sx < 0) sx += (int)window_width;
-      while (sy < 0) sy += (int)window_height;
+      while (sx < 0) sx += (int)root_width;
+      while (sy < 0) sy += (int)root_height;
 
       gcv.ts_x_origin = -sx;
       gcv.ts_y_origin = -sy;