[comp.windows.x] VisibilityNotify

haynes@DECWRL.DEC.COM (01/29/88)

The protocol spec seems unclear on the subject of visibility notify. In
particular, you get visibility notification when you become "obscured"
and windows that are "higher in the global stacking order" obscure you.
Stacking order is defined only on siblings, and I assume that "global
stacking order" is intended to cover all windows. However I can't tell
if a parent is "higher in the global stacking order" than its children.

The question arises because I want to know if I should expect to get
visibility notifies if I become clipped by my parent. In order of priority:

	1) I'd like a clarification of the protocol
	2) I'd like to get visibility notifies if I become clipped by my parent
	n) I'd like to get a visibility notify, "totally obscured" if I
get unmappped

	-- Charles

RWS@ZERMATT.LCS.MIT.EDU (Robert Scheifler) (01/30/88)

    Date: Thu, 28 Jan 88 19:02:14 -0800
    From: haynes@decwrl.dec.com

    The protocol spec seems unclear on the subject of visibility notify. In
    particular, you get visibility notification when you become "obscured"
    and windows that are "higher in the global stacking order" obscure you.
    Stacking order is defined only on siblings, and I assume that "global
    stacking order" is intended to cover all windows. However I can't tell
    if a parent is "higher in the global stacking order" than its children.

You are right, "global stacking order" is not currently defined.  It was
my intention that all ancestors be considered higher in the stacking
order.  I admit the MIT sample server does not generate events in
accordance with my intention.  I won't predict whether it will in R2.

    The question arises because I want to know if I should expect to get
    visibility notifies if I become clipped by my parent.

That seems to me to be a reasonable expectation.

							    In order of priority:

	    1) I'd like a clarification of the protocol
	    2) I'd like to get visibility notifies if I become clipped by my parent

Me giving you my intention, and actually getting Consortium agreement
and a wording change in the protocol document are two different things.
You have one, but the other takes time.

	    n) I'd like to get a visibility notify, "totally obscured" if I
    get unmappped

Select for StructureNotify.  Yes, this gets you more events than you
cared for, but it doesn't require a protocol change.