Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: x11 windows don't come to foreground on focus



On Nov 6, 2007 9:02 AM, James Pepin <email@hidden> wrote:
> One more thing that I just noticed.
>
> If you have two xterms, and one of them is focused, then clicking on the
> other one behind something does bring it to the foreground.
>
> So another workaround is to click one xterm first, and then click the one
> you want to focus.  The first xterm will stay in the background, but it will
> cause X11 to gain focus, and then the second click will bring the second
> xterm to the foreground.
>
> Its almost like X11 needs to have focus, before it will show the windows.

It's actually not exactly that... If there are multiple windows and
you switch to another app (say, Firefox), as long as you click into
X11 in a window *other than* the last window that had focus in X11,
you're fine.

So, let's say you've got gv and xterm open in X11 and gv has focus.
You start running Firefox and then decide to go back to gv -- it
doesn't come forward.

However, if you switch back to Firefox and then decide to go to the
xterm, the xterm comes forward.

So, I suppose the solution lies somewhere in the code where X11
determines what the frontmost window is.  Without having seen the
code, there must be some place where a decision is made about whether
the window you're clicking on was previously the frontmost window or
not.  Short-circuiting this decision (and saying, no, it wasn't the
frontmost) should solve the problem.  I'm not familiar at all with
this code base, so it would take me far too long to find this...
anyone who knows what they're doing want to look into it?

-Richard
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden

References: 
 >RE: x11 windows don't come to foreground on focus (From: "James Pepin" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.