forked from enlightenment/enlightenment
when desklocked, notifications do nothing
SVN revision: 80638
This commit is contained in:
parent
d9c46a763a
commit
a7cba639ab
|
@ -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++;
|
||||
|
||||
|
|
Loading…
Reference in New Issue