claws-mail alt tab behaviour under gnome 3
I hope this is the right way to report this.
I'm running GNOME 3.30.2 on openSUSE Tumbleweed, but the following bug already happens for me since quite some releases (not sure which exactly).
What happens: I start claws-mail. I start two instances of gnome-terminal. I type on the terminal and want to switch to the other instance by pressing alt+`. I end up at claws-mail instead of gnome-terminal.
If I minimize claws-mail, everything works as expected. Normal alt+tab behaviour also works as expected. alt+` switches to another instance of gnome-terminal, alt+tab switches to another application.
Since this only happens with claws-mail at first I thought it's a bug there. I contacted the developers on IRC. This is what came out:
- On their KDE Plasma (5.51, 5.53, 5.8) systems the behaviour works as expected.
- Claws does not set WM_CLASS explicitly but it seems GTK sets it automatically: https://developer.gnome.org/gtk2/2.24/GtkWindow.html#gtk-window-set-wmclass
- https://wiki.gnome.org/Projects/GnomeShell/ApplicationBased seems to indicate that the desktop file (over which I start claws-mail from the GNOME menu) might be important too. It's located at /usr/share/applications/claws-mail.desktop and I attached it asclaws-mail.desktop to this issue entry. However it seems correct too.
- xprop shows me that WM_CLASS is set for claws:
WM_CLASS(STRING) = "claws-mail", "Claws-mail"
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
I have no idea what causes this issue, but it seems that it only happens in the combination of GNOME3 and claws-mail. If you need me to provide more info I will try to do that.