ShellApp: Make sure that we use a valid timestamp when activating
Otherwise, we'd be comparing against the last_used_time and setting it to 0. https://bugzilla.gnome.org/show_bug.cgi?id=656374
This commit is contained in:
parent
22b2661df9
commit
91cba1f8f4
@ -543,6 +543,13 @@ shell_app_activate_full (ShellApp *app,
|
|||||||
int workspace,
|
int workspace,
|
||||||
guint32 timestamp)
|
guint32 timestamp)
|
||||||
{
|
{
|
||||||
|
ShellGlobal *global;
|
||||||
|
|
||||||
|
global = shell_global_get ();
|
||||||
|
|
||||||
|
if (timestamp == 0)
|
||||||
|
timestamp = shell_global_get_current_time (global);
|
||||||
|
|
||||||
switch (app->state)
|
switch (app->state)
|
||||||
{
|
{
|
||||||
case SHELL_APP_STATE_STOPPED:
|
case SHELL_APP_STATE_STOPPED:
|
||||||
@ -557,7 +564,7 @@ shell_app_activate_full (ShellApp *app,
|
|||||||
{
|
{
|
||||||
char *msg;
|
char *msg;
|
||||||
msg = g_strdup_printf (_("Failed to launch '%s'"), shell_app_get_name (app));
|
msg = g_strdup_printf (_("Failed to launch '%s'"), shell_app_get_name (app));
|
||||||
shell_global_notify_error (shell_global_get (),
|
shell_global_notify_error (global,
|
||||||
msg,
|
msg,
|
||||||
error->message);
|
error->message);
|
||||||
g_free (msg);
|
g_free (msg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user