3 Sep 2011 21:01
Re: XRaiseWindow for activating windows in multiwindow mode
Jon TURNEY <jon.turney <at> dronecode.org.uk>
2011-09-03 19:01:50 GMT
2011-09-03 19:01:50 GMT
On 13/08/2011 19:39, Oliver Schmidt wrote: > as reported in > > http://www.cygwin.com/ml/cygwin-xfree/2005-06/msg00072.html > > windows are not raised from the Cygwin X Server in multiwindow > mode, if a program wants to programmatically activate a window. > > I played around and figured out that the problem can be solved by > invoking the windows function SetForegroundWindow if a top level > window is to be restacked and has no previous sibling. > > I enclose the patch in this email. It works fine for me, but > I'm not sure if it has any side effects for other configurations > or usage patterns. Thanks for looking into this, and for the patch. There definitely are some problems in this area, but I'm not sure this is the 'correct' fix, though. The code as it stands is the product of some ... erm ... historical compromises. If I am reading the code correctly, it looks like currently no attempt is made to synchronize changes in the X window Z-order (e.g. made by XRaiseWindow()) to the native Windows window Z-order, and the comment in [1] seems to bear this out. The code which perhaps would do this is in the disabled branch of the #if/#else/#endif in winRestackWindowMultiWindow() The relevant thread seems to be [2] and the relevant change seems to be [3],(Continue reading)
Best regards,
Oliver
--
Unsubscribe info:
RSS Feed