This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: window focus, raise, and stacking order
- From: Takuma Murakami <takuma at dgp dot ne dot jp>
- To: cygwin-xfree at cygwin dot com
- Date: Sun, 04 Apr 2004 13:35:45 +0900
- Subject: Re: window focus, raise, and stacking order
- References: <s06a8d72.000@ohsu.edu> <5.1.1.6.2.20040331230947.00bb6d40@mail.ziplabel.com>
- Reply-to: cygwin-xfree at cygwin dot com
Earle,
Thank you for inspecting the bug. I know my recent changes for
window manipulation is rather heuristic; they just happen to fix
bugs but have no "right" reason, so they often cause other bugs
on other places. I must learn the whole event cycle of windows
in both Windows and X with a book or something.
As to the bug I have not considered the situation that the focus
window and the foreground window are different, so the bug is
supposed to happen. I remember that I inserted the code
/* Tell our Window Manager thread to activate the window */
wmMsg.msg = WM_WM_ACTIVATE;
if (fWMMsgInitialized)
if (!pWin || !pWin->overrideRedirect) /* for OOo menus */
winSendMessageToWM (s_pScreenPriv->pWMInfo, &wmMsg);
into winmultiwindowwndproc.c:749 because of a focus problem in
Emacs. However it should be moved to somewhere else if the
following table is right.
Focus Foreground
Windows WM_SETFOCUS WM_ACTIVATE
X XSetInputFocus XRaiseWindow
Unfortunately I don't have X-Mouse so I cannot test for now.
I will try to use it when I have some spare time, but I greatly
appreciate anyone who gives comments or patches on it.
Takuma Murakami