I suspect that previously we never really iconified the Journal window correctly, but with the new GTK+ code maybe we do so now, which triggers a behaviour change.

Adding

window.unminimize(Gtk.get_current_event_time())

in CurrentActivityIcon.button_release_event_cb solves this but causes some visual oddness first.

The root of the problem here is that we iconify the Journal when it is launched. I'm wondering if we have any other options here. We don't iconify windows under any other circumstances, as far as I can see.

Another option would be to look at the wnck code and compare how it handles iconify/deiconify.

I still haven't got my head around the event flow in window-state-event so I'm not very confident about the above.

I don't think there are any other options at hand other than starting the Journal in iconified state. X and GDK do have support for mapping windows without displaying them (e.g. gdk_window_show_unraised()) but GTK+ does not support this.

(In fact, maybe we should be iconifying non-active activities in addition to the Journal. This might cause them to be unmapped, saving memory.)