GNOME Bugzilla – Bug 601907
Metacity crashes when flashing undecorated window's frame for Xkb bell event
Last modified: 2009-11-16 16:03:12 UTC
Created attachment 147731 [details] [review] patch to flash screen instead if window has no frame Metacity hits a failed assertion in bell_flash_window_frame() when it tries to flash the window frame for an undecorated (via _MOTIF_WM_HINTS) window -- see https://bugs.launchpad.net/ubuntu/+source/metacity/+bug/467972 . The attached patch against 2.28.0 fixes this.
I'm also attaching a small program demonstrating the issue. If you have "Visual alert" set to "Flash window" in Sound Preferences -> Sounds and you run this program and click in the undecorated window, Metacity crashes. This is affecting Chromium users: http://code.google.com/p/chromium/issues/detail?id=27654 . I haven't been able to reproduce this using Chromium yet, though; the XkbBellNotify event that I'm seeing GTK apps send has its 'window' field unset, so Metacity uses the focused window instead, for which it already checks that the frame is present.
Created attachment 147733 [details] program that triggers the crash -- run it and click in the window
Created attachment 147735 [details] [review] slightly better patch
Dup of bug 598231 which also has a patch, haven't compared the two patches. *** This bug has been marked as a duplicate of bug 598231 ***
The patches are functionally identical.