After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 167847 - New application windows don't have focus
New application windows don't have focus
Status: RESOLVED DUPLICATE of bug 162424
Product: metacity
Classification: Other
Component: general
2.9.x
Other All
: Normal normal
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
Depends on:
Blocks:
 
 
Reported: 2005-02-18 21:23 UTC by Murray Cumming
Modified: 2005-02-18 23:36 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Murray Cumming 2005-02-18 21:23:47 UTC
Please describe the problem:


Steps to reproduce:
1. Right-click on the desktop, and choose "Open Terminal" from the menu.
2. The new window does not have focus.

1. Select an item on the desktop to give it focus.
2. Launch an application (such as Epiphany) from the panel
3. The new window does not have focus.

This problem does not happen when starting applications from the Applications menu.

Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Shaun McCance 2005-02-18 21:31:23 UTC
This basically renders panel launchers useless.  I hadn't even noticed that
windows get focus when launched from the menu until Murray pointed it out,
because I almsot always use the couple of launchers I've put on my panel.
Comment 2 Elijah Newren 2005-02-18 22:55:04 UTC
The "Open Terminal" item in the right click desktop menu is a problem with
nautilus not using startup-notification.  It's a dupe of bug 162424.

The launching of Epiphany could be one of a couple things: (1) Your version of
Epiphany is too old (they only recently added support for correctly handling
startup-notification), (2) When you created the launcher you did it in such a
way that the .desktop file does not contain "StartupNotify=true", or (3) you've
found some issue that I'm unaware of.  To find out which: What day did you pull
Epiphany from CVS (or what is the version number you're running if running from
tarballs)?  Does the .desktop file corresponding to your launcher contain
"StartupNotify=true"?  The following command (or a slight change thereof; check
the properties of your launcher to now the right string to search for) may be
useful to you, run from your ~/.gnome2 directory:

  find . -name "*.desktop" | xargs grep -l "Epiphany Web Browser" | xargs \
    grep "StartupNotify"

Comment 3 Murray Cumming 2005-02-18 23:08:05 UTC
> The launching of Epiphany ... they only recently added support

Actually, it was Firefox. Epiphany works fine. Sorry. I tried Firefox with and
without StartupNotify=true.

You are very clever.
Comment 4 Elijah Newren 2005-02-18 23:27:00 UTC
Bugs in Firefox and Mozilla need to be filed at bugzilla.mozilla.org.  ;-)

Basically, all those weird apps that
don't-open-a-window-but-request-that-a-previous-instance-do-it-for-them (e.g.
Mozilla, Firefox, Epiphany, Galeon, gnome-terminal, nautilus, etc.) need to
forward startup-notification information to that previous instance in order to
make sure things work correctly.  Firefox probably has partial support for this,
in order to make sure the busy cursor doesn't get stuck and stay around for 20
seconds after the window opens.  But, as of last October or so, these apps are
also supposed to deal with timestamps.  See bug 156413 for an example of how
this support can be added.them.

Anyway, I'll reopen and mark as a duplicate of bug 162424 because of the first
of the two bugs you reported...
Comment 5 Elijah Newren 2005-02-18 23:27:42 UTC

*** This bug has been marked as a duplicate of 162424 ***
Comment 6 Murray Cumming 2005-02-18 23:36:34 UTC
Here is the firefox bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=223492

Thanks.