Bug 93621 - While using Safari, xterm windows spontaneously pop into foreground, obscuring the Safari window
Summary: While using Safari, xterm windows spontaneously pop into foreground, obscurin...
Status: RESOLVED MOVED
Alias: None
Product: XQuartz
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 2.7.8 (xserver-1.16.4)
Hardware: x86-64 (AMD64) Mac OS X (All)
: high major
Assignee: Jeremy Huddleston Sequoia
QA Contact: Jeremy Huddleston Sequoia
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-07 07:52 UTC by jreese
Modified: 2019-05-23 18:30 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
attachment-1613-0.html (1.84 KB, text/html)
2016-01-07 08:38 UTC, jreese
Details
Screenshot where xterms have popped into foreground while Safari remains the active app (642.50 KB, image/png)
2016-01-12 00:11 UTC, jreese
Details

Description jreese 2016-01-07 07:52:55 UTC
While using Safari, xterm windows spontaneously pop into foreground, obscuring the Safari window. This happens very frequently (every few seconds, sometimes). If any portion of the Safari window is available, I can click on that to bring it back to the foreground. If not, I have to CMD-TAB once to the previous application, then CMD-TAB back to Safari to get it to pop back into the foreground.

NOTE: while the xterm windows are in the foreground, Safari is actually the running app, not X11 (XQuartz).

I tried disabling Focus Follows Mouse and Focus on New Windows; the problem persists. At times it is so frequent that I can't can't any work done.
Comment 1 jreese 2016-01-07 08:10:27 UTC
(In reply to jreese from comment #0)
> While using Safari, xterm windows spontaneously pop into foreground,
> obscuring the Safari window. This happens very frequently (every few
> seconds, sometimes). If any portion of the Safari window is available, I can
> click on that to bring it back to the foreground. If not, I have to CMD-TAB
> once to the previous application, then CMD-TAB back to Safari to get it to
> pop back into the foreground.
> 
> NOTE: while the xterm windows are in the foreground, Safari is actually the
> running app, not X11 (XQuartz).
> 
> I tried disabling Focus Follows Mouse and Focus on New Windows; the problem
> persists. At times it is so frequent that I can't can't any work done.

Just to clarify, this is a MacBook Pro (Retina, 15-inch, Mid 2014) with an Intel Core i7 2.8 GHz processor.
Comment 2 Jeremy Huddleston Sequoia 2016-01-07 08:28:24 UTC
I'm not seeing this, and there have been no other reports either.  Is it happening with regularity or at random intervals?
Comment 3 jreese 2016-01-07 08:38:21 UTC
Created attachment 120854 [details]
attachment-1613-0.html

It's happening frequently, though irregular. In other words, at times it
occurs every few seconds for 1-15 minutes. At other times it seems to be
quiescent. I'll try to notice specific patterns, and also get a screenshot
for you.

This has been going on for a long time (~6 months or more).

Best,

Jim
jreese@gmail.com

On Thu, Jan 7, 2016 at 12:28 AM, <bugzilla-daemon@freedesktop.org> wrote:

> *Comment # 2 <https://bugs.freedesktop.org/show_bug.cgi?id=93621#c2> on
> bug 93621 <https://bugs.freedesktop.org/show_bug.cgi?id=93621> from Jeremy
> Huddleston Sequoia <jeremyhu@freedesktop.org> *
>
> I'm not seeing this, and there have been no other reports either.  Is it
> happening with regularity or at random intervals?
>
> ------------------------------
> You are receiving this mail because:
>
>    - You reported the bug.
>
>
Comment 4 jreese 2016-01-12 00:11:25 UTC
Created attachment 120972 [details]
Screenshot where xterms have popped into foreground while Safari remains the active app

This is a screenshot just after four xterm windows popped into the foreground while I was using Safari. Note that Safari remains the active app, as you can see the in menu bar.

Jim
Comment 5 Jason Brooks 2016-12-30 15:44:53 UTC
Hello,

I have been seeing this happen for several months with chrome, and sometimes firefox.  I rarely use safari.  I am using el capitan, but I am pretty sure I saw it in yosemite.

I also saw it happening on my old 15" mbp ( I got upgraded recently).  The tie might be that I used migration assistant to move my profile from the old laptop to the new one.

For most of that time I have been searching google for what this might be.  I should have signed onto this bug site earlier...  

When at work, I use a variety of external monitors.  I have seen it happen there also, but it annoys me less frequently because I try to keep my windows separate on the monitors.

The workaround I found is to use command-H in xquartz to hide all of the windows.

Another workaround is to command-tab then command-shift-tab to bring chrome back to the foreground. This is less problematic as i am using command-tab all the time anyway.

I have had "displays have different spaces" turned off since mavericks for a different reason, one that I could never articulate in a bug report...but not this.  :)
Comment 6 Jason Brooks 2016-12-30 15:55:29 UTC
(In reply to Jason Brooks from comment #5)

Whoops: I am currenly running:
   el Capitan 10.11.6
   xquartz 2.7.11
   chrome 55.0.2883.95 (64-bit)

on a 15" macbook pro (retina, mid 2015) aka MacBookPro11,5

> I have been seeing this happen for several months with chrome, and sometimes
> firefox.  I rarely use safari.  I am using el capitan, but I am pretty sure
> I saw it in yosemite.
Comment 7 Marc Singer 2017-03-11 22:12:48 UTC
Here's a 'metoo'.

I've been seeing the same spontaneous X11 windows foregrounding for a matter of months, perhaps even years.  It wasn't very frequent so I was willing to live with it.  Today, it has become a nuisance as it occurs after typing into a browser window for a couple of seconds.  The only way to work with X11 windows and a native app is to hide all of the X11 windows.

I'm using Firefox 52.0.  I've assumed that firefox was the culprit because it's the only thing that is updated regularly on my machine.  I use Thunderbird 45.8 as well.

I tried changing the XQ settings for focus-follows-mouse.  Didn't change the behavior.

Like Jason, I have XQ 2.7.11 and ElCap 10.11.6.
Comment 8 Boris Zbarsky 2018-09-28 21:41:19 UTC
For me this seems to happen when the laptop switches from integrated to discrete graphics.  At that point XQuartz windows will pop up into the foreground.

Browsers are a common cause of these switches, because lots of web pages do things that may require the discrete GPU to work well (e.g. WebGL feature-detection).  But other applications that trigger the discrete GPU have a similar effect over  here.
Comment 9 GitLab Migration User 2019-05-23 18:30:48 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/762.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.