From 44b59355d1540405a8efeacf36539f2906d1ff45 Mon Sep 17 00:00:00 2001 From: Duna Oh Date: Tue, 1 Sep 2015 13:39:40 +0900 Subject: [PATCH] Add check for 'noti_win' window in client_normal_check()- allow client to change the position Change-Id: Ifafb2fe592caed1c867c6509961f38690164be54 Signed-off-by: Duna Oh --- src/e_mod_main.c | 18 ++++++++++++++++++ src/e_mod_main.h | 1 + 2 files changed, 19 insertions(+) diff --git a/src/e_mod_main.c b/src/e_mod_main.c index cb760a6..4fe0482 100644 --- a/src/e_mod_main.c +++ b/src/e_mod_main.c @@ -234,6 +234,12 @@ _pol_client_normal_check(E_Client *ec) if (pc) _pol_client_del(pc); return EINA_FALSE; } + else if (e_mod_pol_client_is_noti(ec)) + { + pc = eina_hash_find(hash_pol_clients, &ec); + if (pc) _pol_client_del(pc); + return EINA_FALSE; + } #ifdef HAVE_WAYLAND_ONLY else if (e_mod_pol_client_is_subsurface(ec)) { @@ -961,6 +967,18 @@ e_mod_pol_client_is_sysinfo(E_Client *ec) return EINA_FALSE; } +Eina_Bool +e_mod_pol_client_is_noti(E_Client *ec) +{ + E_OBJECT_CHECK_RETURN(ec, EINA_FALSE); + E_OBJECT_TYPE_CHECK_RETURN(ec, E_CLIENT_TYPE, EINA_FALSE); + + if (!e_util_strcmp(ec->icccm.title, "noti_win")) + return EINA_TRUE; + + return EINA_FALSE; +} + #ifdef HAVE_WAYLAND_ONLY Eina_Bool e_mod_pol_client_is_subsurface(E_Client *ec) diff --git a/src/e_mod_main.h b/src/e_mod_main.h index 151efd5..538b031 100644 --- a/src/e_mod_main.h +++ b/src/e_mod_main.h @@ -113,6 +113,7 @@ EINTERN Eina_Bool e_mod_pol_client_is_quickpanel(E_Client *ec); EINTERN Eina_Bool e_mod_pol_client_is_conformant(E_Client *ec); EINTERN Eina_Bool e_mod_pol_client_is_volume(E_Client *ec); EINTERN Eina_Bool e_mod_pol_client_is_sysinfo(E_Client *ec); +EINTERN Eina_Bool e_mod_pol_client_is_noti(E_Client *ec); #ifdef HAVE_WAYLAND_ONLY EINTERN Eina_Bool e_mod_pol_client_is_subsurface(E_Client *ec); #endif -- 2.7.4