Hi,

Is there a reason why we're setting the "backing_store" attribute to
"NotUseful" at the creation of a X window?

Setting it to "WhenMapped" increase significantly the refresh rate when
moving or resizing a window (see the patch below). I understand that it will
take more memory using this option, but I'm more concerned with the fact
that it could cause some side effects with some applications.

I'll be very surprise that nobody has never thought of setting this flag
before, so I suspect there's some good reason to setting it to "NotUseful",
anybody can tell me why?


        Stephane Lussier
        Macadamian Technologies


Index: windows/x11drv/wnd.c
===================================================================
RCS file: /home/wine/wine/windows/x11drv/wnd.c,v
retrieving revision 1.50
diff -u -r1.50 wnd.c
--- windows/x11drv/wnd.c        2000/07/10 12:09:32     1.50
+++ windows/x11drv/wnd.c        2000/07/19 13:11:28
@@ -295,7 +308,7 @@

       win_attr.bit_gravity   = (classPtr->style & (CS_VREDRAW |
CS_HREDRAW)) ? BGForget : BGNorthWest;
       win_attr.colormap      = X11DRV_PALETTE_PaletteXColormap;
-      win_attr.backing_store = NotUseful;
+      win_attr.backing_store = WhenMapped;
       win_attr.save_under    = ((classPtr->style & CS_SAVEBITS) != 0);
       win_attr.cursor        = X11DRV_MOUSE_XCursor;


Reply via email to