On Thu, 10 Oct 2002, Martin Ding wrote:

> If just switching 2 windows by clicking, we only see these 2 windows
> changing their frame(such as title bar become bright or dim), while
> their content changing nothing.
> So, How does client make server do this? I mean how do make server only
> change window's frame? and which request sent from
> client(X_ConfigureWindow does not did this), or Event server will return
> to client?
> Or it is just controled by window manager in local side? not through
> XServer?

  The client window is sitting on top of (is the child of) a window
owned by the window manager.  The window manager's window is usually
larger than the client's window and the extra space around the client
window holds the window decorations (title bar, etc...).  When you
click on the window frame you are clicking on the window manager's
window and the window manager gets the events and takes the appropriate
action.  The client doesn't know anything about it and was not involved
in the process at all.  The client doesn't own the decorations and
has nothing to do with them.


                        Mark.
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to