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 418552 - metacity forgets "(on Hostname)" annotantion on remote apps sometimes
metacity forgets "(on Hostname)" annotantion on remote apps sometimes
Status: RESOLVED FIXED
Product: metacity
Classification: Other
Component: general
2.17.x
Other Linux
: Normal minor
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
: 393867 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-03-15 12:50 UTC by Sebastien Bacher
Modified: 2007-04-16 16:29 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
Patch that might fix it, but is completely untested (1.00 KB, patch)
2007-04-16 03:39 UTC, Elijah Newren
committed Details | Review

Description Sebastien Bacher 2007-03-15 12:50:38 UTC
The bug has been opened on https://launchpad.net/bugs/90409

"Binary package hint: metacity

Hi! This report is about the latest Metacity on Feisty.

Metacity usually tries to add an "(on Hostname)" annotation to applications that run on remote hosts but use the local machine's X server. For instance, I run Amarok on another computer using "ssh -fnX Hostname.local amarok", and the hostname is normally displayed in the window's titlebar.

I'm not sure what causes the problem, but often the annotation disappears. In Amarok's case, it always disappears if I reduce it to a Notification Area icon. When I restore the window, it looks just like a local window. When Amarok changes its title (for example, when the track changes) the annotation returns. It doesn't disappear if I minimize it, just if I iconize it.

I'm almost sure I've seen this for other applications, too, but this is the one I can consistently reproduce the bug with."
Comment 1 Elijah Newren 2007-04-12 22:24:16 UTC
See also 393867.
Comment 2 sam tygier 2007-04-15 11:49:10 UTC
the same thing happens with rhythmbox.

(am i allowed to set this to confirmed, or is that up to the devs?)
Comment 3 Elijah Newren 2007-04-16 03:39:01 UTC
sam: I completely ignore confirmed vs. unconfirmed in metacity.

So, trying to take an educated guess from looking at the code, I cooked up a patch that _might_ help.  Will need some testers to verify.  If it doesn't help, I'd like the output of the commands
  hostname
and
  xprop | grep ^WM_CLIENT_MACHINE
for starters.  I'll attach the patch in a minute.
Comment 4 Elijah Newren 2007-04-16 03:39:38 UTC
Created attachment 86407 [details] [review]
Patch that might fix it, but is completely untested
Comment 5 Gustavo Carneiro 2007-04-16 10:41:30 UTC
*** Bug 393867 has been marked as a duplicate of this bug. ***
Comment 6 Gustavo Carneiro 2007-04-16 10:42:03 UTC
(In reply to comment #4)
> Created an attachment (id=86407) [edit]
> Patch that might fix it, but is completely untested
> 

The patch fixes the problem for me.  Good work.