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 636306 - Contact list window uncloseable in xmonad
Contact list window uncloseable in xmonad
Status: RESOLVED OBSOLETE
Product: empathy
Classification: Core
Component: Contact List
2.32.x
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
Depends on:
Blocks:
 
 
Reported: 2010-12-02 16:34 UTC by Martin Ling
Modified: 2011-09-05 14:10 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Martin Ling 2010-12-02 16:34:07 UTC
Clicking the Empathy icon in the notification area is supposed to toggle the contact list; as is clicking the 'Show Contact List' checkbox in the right-click menu for this icon.

Using xmonad, this works to initially display the contact list, but clicking either the icon or the checkbox afterward has no effect and the contact list becomes an uncloseable window.

This was reported in Ubuntu and I'm passing it upstream.
https://bugs.launchpad.net/ubuntu/+source/empathy/+bug/393138

The underlying problem is apparently that calling gtk_window_iconify() has no effect under xmonad, which is a tiling window manager without the concept of minimized windows.

There is a patch attached there which fixes the problem by adding a gtk_widget_hide() call to empathy_window_iconify().

The documentation for gtk_window_iconify() says: "Note that you shouldn't assume the window is definitely iconified afterward, because other entities (e.g. the user or window manager) could deiconify it again, or there may not be a window manager in which case iconification isn't possible, etc."

Note that this is unrelated to the Ubuntu-specific patches that make Empathy use their multi-purpose indicator applet. To reproduce this problem on Ubuntu, one needs to uncheck the 'Show incoming messages in the messaging menu' option, which disables that code and restores Empathy's own tray icon.
Comment 1 Guillaume Desmottes 2010-12-03 09:51:56 UTC
This patch has the side effect to remove the "smooth" animation moving the window to the status area. Do you know if we can check if the WM support iconification?
Comment 2 Martin Ling 2010-12-24 06:48:09 UTC
Re: comment #1:

If the window manager supports EWMH, it seems this can be checked by looking for _NET_WM_ACTION_MINIMIZE in the _NET_WM_ALLOWED_ACTIONS for the window.

http://standards.freedesktop.org/wm-spec/wm-spec-latest.html#id2551927
Comment 3 Rodney Lorrimar 2011-09-03 08:09:01 UTC
Hi,

It's working for me with empathy 3.1.5 and xmonad 0.9.2 (debian). Same patch helped with #604759. And the GTK3 version looks great!

Cheers,

Rodney