Hello...

I wonder if some one can suggest an answer to the following question:
I am a total X novice and would appreciate any suggestions you may have.

I am trying to create a simple drawing tool....

       __________
       |        |
       |     ___|___
       |_____|__|  |
             |	   |
	     |_____|

Let's say I have two rectangles on the canvas(see above) 
one intersecting the other...
Now, I would like to delete one of the rectangles.
The way I do it is to create another GC wherein I use the
GXxor logical function and simply redraw the rectangle using the newly
created graphics context thus deleting it for all apparent purposes.
A problem with this approach is that at the points of intersection the pixel 
locations belonging to the other rectangle also become white, which is 
something that should be avoided.

Is there any way I can avoid this problem without having to redraw the other
rectangle too?
I also would not like to generate an expose event for the affected area
as this degrades performance very badly...
