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 167783 - gnome-terminal should be able to beep the right window
gnome-terminal should be able to beep the right window
Status: RESOLVED DUPLICATE of bug 329108
Product: vte
Classification: Core
Component: general
0.13.x
Other All
: Normal normal
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on: 353455 398862
Blocks:
 
 
Reported: 2005-02-18 07:56 UTC by Young-Ho Cha
Modified: 2008-09-25 14:36 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
Fix the beeping issue, *if* my patch in bug #353455 gets accepted. (861 bytes, patch)
2006-08-29 19:09 UTC, Mariano Suárez-Alvarez
needs-work Details | Review

Description Young-Ho Cha 2005-02-18 07:56:07 UTC
Please describe the problem:
when visual feedback to flash window titlebar, flash window that focus currently
not bell source window.

Steps to reproduce:
0. set "Visual feedback" to "Flash Window titlebar" in gnome-sound-properties
1. make two xterm
2. type sleep 5 && echo -n "\a" && sleep 1 && echo -n "\a" in first xterm and run
3. focus to the other xterm.


Actual results:
flash the other xterm.

Expected results:
flash first xterm.

Does this happen every time?
yes

Other information:
Comment 1 Elijah Newren 2005-02-25 17:34:49 UTC
Reproduction steps don't appear to work under bash but do work under tcsh.  From
the description of /apps/metacity/general/visual_bell_type:

If the application which sent the bell is unknown (as is usually the case for
the default "system beep"), the currently focused window's titlebar is flashed.

Havoc: Does that mean this is NOTABUG?
Comment 2 Havoc Pennington 2005-02-25 20:09:44 UTC
It's a bug in the terminal being used, so either gnome-terminal or NOTGNOME

Terminal should be able to beep the right window.
Comment 3 Elijah Newren 2005-02-25 20:17:58 UTC
I was able to duplicate under gnome-terminal, so I'll reassign there.
Comment 4 Mariano Suárez-Alvarez 2006-08-29 19:09:01 UTC
Created attachment 71854 [details] [review]
Fix the beeping issue, *if* my patch in bug #353455 gets accepted.

When vte gets a BELL character it calls gdk_display_beep on the display to which the terminal widget is attached. Looking at metacity's bell.c, one sees that in that case the currently focused window gets flashed.

The correct way to fix this is to add API to GDK to beep a *window* instead of a display. I've posted a patch on bug #353455 which does this.

_Assuming_that_gets_commited_, then the following patch fixes this issue on vte's side. If GDK people do not like my gdk_window_beep thingie, then vte should do itself the whole thing.
Comment 5 Elijah Newren 2006-08-29 19:18:44 UTC
Mariano is back!  Yaay!!!  :-)
Comment 6 Olav Vitters 2006-08-29 19:30:00 UTC
and even fixing vte stuff :-)
Comment 7 Behdad Esfahbod 2006-08-29 22:32:27 UTC
yay, can't wait until we branch...
Comment 8 Mariano Suárez-Alvarez 2006-08-30 16:58:06 UTC
GDK accepted the patch, so this should be accepted-commit_after_freeze?
Comment 9 Behdad Esfahbod 2006-08-30 17:51:13 UTC
(In reply to comment #8)
> GDK accepted the patch, so this should be accepted-commit_after_freeze?

As soon as you can require a version of gtk+ that contains the new API.  Or conditionally use the new API.

There's another bug open on gnome-terminal about setting X urgency hint on receiving a bell.  Not sure if we can rely on the window manager doing that now.
Comment 10 Behdad Esfahbod 2007-11-28 13:06:19 UTC
Mariano or Elijah, (checking the patch,) what if toplevel is not windows and the condition fails?  Should it fall back to the old behavior?
Comment 11 Elijah Newren 2007-12-03 00:44:22 UTC
Um, sure?  I'm having a hard time thinking of when the condition would fail, but it seems that the old behavior would be a reasonable fallback.
Comment 12 Behdad Esfahbod 2007-12-03 04:06:16 UTC
Well, a condition that can't fail doesn't make sense either :).  I'll update and commit then.
Comment 13 Behdad Esfahbod 2007-12-03 23:27:52 UTC
Should go in 0.17.x.  I'm releasing 0.16.10 today, but plan on bumping Gtk+ requirement and add/remove api after.
Comment 14 Christian Persch 2008-06-16 20:12:13 UTC
Looks like a dup of bug 329108 (this one is older but the new one has a more correct patch).
Comment 15 Christian Persch 2008-09-25 14:36:24 UTC

*** This bug has been marked as a duplicate of 329108 ***