[comp.windows.x] Missing Exposures

kall@mayo.EDU (Bruce Kall) (04/07/91)

I have a main window (call in MAIN_WINDOW) that fills my entire screen.

I have two other visible windows, children of MAIN_WINDOW, that do not overlap
each other (call then WINDOW_1, WINDOW_2).

I create a third window (call it ON_TOP) a child of MAIN_WINDOW and set its x,y
coordinate
so that when it is mapped, it is on top and partially obscures WINDOW_1 and
WINDOW2.

When I XDestroy ON_TOP, I'm not getting Expose/Visibility Events for WINDOW_1
and/or WINDOW_1.


NOTES:

1) All windows are created with XCreateSimpleWindow, mapped with XMapwindow
and then destroyed with XDestroyWindow.

2) MAIN_WINDOW is set as XSelectInput (the_display, MAIN_WINDOW,
SubstructureNotifyMask |
     ButtonPressMask | ButtonReleaseMask | OwnerGrabButtonMask |
     EnterWindowMask | LeaveWindowMask | ExposureMask);

3) All other are set as: XSelectInput (the_display, ?which_window?,
    ButtonPressMask | ButtonReleaseMask | OwnerGrabButtonMask |
    EnterWindowMask | LeaveWindowMask | ExposureMask | VisibilityChangeMask);



Does anybody have any suggestions as to why I'm not getting Expose Events??



\------------------------------------------------------------\
 \   Bruce Kall                \  Internet:   Kall@Mayo.edu   \
  \   Mayo Clinic (Foundation)  \  Phone: (507)-255-4768       \
   \   Rochester, MN 55905       \                              \
    \------------------------------------------------------------\

mouse@lightning.mcrcim.mcgill.EDU (der Mouse) (04/11/91)

> I have a main window (call in MAIN_WINDOW) that fills my entire screen.

> I have two other visible windows, children of MAIN_WINDOW, that do
> not overlap each other (call then WINDOW_1, WINDOW_2).

> I create a third window (call it ON_TOP) a child of MAIN_WINDOW and
> set its x,y coordinate so that when it is mapped, it is on top and
> partially obscures WINDOW_1 and WINDOW2.

> When I XDestroy ON_TOP, I'm not getting Expose/Visibility Events for
> WINDOW_1 and/or WINDOW_1.

(..._2.  I also assume you do in fact map ON_TOP, and that the stacking
order is such that it is in front of WINDOW_1 and WINDOW_2.  I also
assume that you do the XSelectInput calls before you destroy ON_TOP.)

> 3) All other [windows: except MAIN_WINDOW] are set as: XSelectInput
> (the_display, ?which_window?, ButtonPressMask | ButtonReleaseMask |
> OwnerGrabButtonMask | EnterWindowMask | LeaveWindowMask |
> ExposureMask | VisibilityChangeMask);

> Does anybody have any suggestions as to why I'm not getting Expose
> Events??

Your server could be providing a backing-store attribute of WhenMapped
for you.  (This doesn't explain the lack of VisibilityNotify events; I
have no guesses there, except for postulating bugs.)

					der Mouse

			old: mcgill-vision!mouse
			new: mouse@larry.mcrcim.mcgill.edu