application: Complete startup notification sequence for remote invocations
authorMario Sanchez Prada <mario@endlessm.com>
Mon, 21 May 2018 14:44:02 +0000 (15:44 +0100)
committerMario Sanchez Prada <msanchez@gnome.org>
Mon, 11 Jun 2018 15:28:24 +0000 (16:28 +0100)
commit07d6c533468c003262093cc0a9f9b9abcc470d6d
treea3c56be95a2dcc7cc87580cd12cb2b32d951a1e3
parent479c341545bb5e4f04dbbd2df6fa9318bdfb9888
application: Complete startup notification sequence for remote invocations

When a remote instance of a GTK application implementing the Startup
Notification protocol gets spawned it will pass the startup sequence
ID as "platform data" to the main instance. Thus, we need to make sure
that the startup sequence gets completed in that case, since the remote
instance won't do it by itself, since it won't map any top level window.

Checking for this "platform data" in the implementation of the after_emit()
virtual method in the primary instance should be a good place to do so, since
the existence of such data proves that a remote instance has been spawned.

https://gitlab.gnome.org/GNOME/gtk/issues/1084
gtk/gtkapplication.c