Re: Backing store?



Luke Scharf <luke vt edu> writes:

The origional code has something that looks like this:

   SetWindowAttributes attribs;
   Window wnd;
   attribs.backing_store = Always;
   wnd = XCreateWindow(display, DefaultRootWindow(display),
              0, 0, width, height, 0, 8, InputOutput, visual,
              CWBackingStore | CWBackPixel, &attribs);


Hmm, I didn't realize that feature existed. ;-)

Is there any way to cause this to happen in GTK/GDK?


The Xlib Programming Manual basically says "don't use this feature,
you will waste all kinds of RAM," so, with that caveat - you should be
able to just get the X window with gdkx.h and then call
XChangeWindowAttributes().

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]