when desklocked, notifications do nothing

SVN revision: 80638
This commit is contained in:
Mike Blumenkrantz 2012-12-11 10:08:49 +00:00
parent d9c46a763a
commit a7cba639ab
1 changed files with 5 additions and 3 deletions

View File

@ -19,11 +19,13 @@ static E_Config_DD *conf_edd = NULL;
static unsigned int
_notification_notify(E_Notification *n)
{
const char *appname = e_notification_app_name_get(n);
unsigned int replaces_id = e_notification_replaces_id_get(n);
unsigned int new_id;
const char *appname;
unsigned int replaces_id, new_id;
int popuped;
if (e_desklock_state_get()) return 0;
appname = e_notification_app_name_get(n);
replaces_id = e_notification_replaces_id_get(n);
if (replaces_id) new_id = replaces_id;
else new_id = notification_cfg->next_id++;