Re: Copying X pixmap.



If nothing else works you can make sure GTK does not draw over your
data by using a non-pending GTK call (like gtk_main_iteration_do())
and only manipulate the window using XLib directly between calls
(you are certain it cannot overwrite your window then). Probably
a bad way of doing it, but you can be certain it works.

ciao,
Doug.

On Sat, 3 May 2003, Shannon Rause wrote:

> First, sorry if this gets posted twice *
> 
> Can someone point me in the proper direction on how to do this...
> 
> I have an X pixmap (Pixmap) and I would like to copy its contents onto a
> GdkWindow.  I have tried to use XCopyArea() to do this but it appears that
> the background is redrawn over the copied pixmap.  I set it up so the
> XCopyArea() occurs in the windows expose event. You can actually see the
> pixmap contents as it blinks when you resize the window but it is
> immediately replaced by the standard gray background color.  Can someone
> tell me what I may be doing wrong?
> 
> Thanks.
> 
> * I posted the original one from my work account and it was held by the admin because the email wasn't registered.  I'm not sure if those ever get read/posted or not.
> 
> 
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 
> 





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