/* layer level - E_LAYER_CLIENT_NORMAL (200) */
/* layer level - E_LAYER_CLIENT_BELOW (150) */
+/* quickpanel related data types */
+typedef enum
+{
+ E_SERVICE_QUICKPANEL_TYPE_UNKNOWN = 0x0, /* TZSH_QUICKPANEL_SERVICE_TYPE_UNKNOWN */
+ E_SERVICE_QUICKPANEL_TYPE_SYSTEM_DEFAULT = 0x1, /* TZSH_QUICKPANEL_SERVICE_TYPE_SYSTEM_DEFAULT */
+ E_SERVICE_QUICKPANEL_TYPE_CONTEXT_MENU = 0x2 /* TZSH_QUICKPANEL_SERVICE_TYPE_CONTEXT_MENU */
+} E_Service_Quickpanel_Type;
+
+typedef enum
+{
+ E_QUICKPANEL_TYPE_UNKNOWN = 0,
+ E_QUICKPANEL_TYPE_SYSTEM_DEFAULT = 1,
+ E_QUICKPANEL_TYPE_CONTEXT_MENU = 2,
+} E_Quickpanel_Type;
+
+typedef enum
+{
+ E_QUICKPANEL_REGION_TYPE_HANDLER = 0,
+ E_QUICKPANEL_REGION_TYPE_CONTENTS = 1,
+} E_Quickpanel_Region_Type;
+
#endif
}
E_API void
-e_tzsh_qp_state_visible_update(E_Client *ec, Eina_Bool vis)
+e_tzsh_qp_state_visible_update(E_Client *ec, Eina_Bool vis, E_Quickpanel_Type type)
{
E_Policy_Wl_Tzsh_Client *tzsh_client;
Eina_List *l;
EINA_LIST_FOREACH(polwl->tzsh_clients, l, tzsh_client)
{
+ /* check for type of qp */
+ if (tzsh_client->qp_type != type) continue;
if (!tzsh_client->tzsh) continue;
if (!tzsh_client->tzsh->ec) continue;
}
E_API void
-e_tzsh_qp_state_scrollable_update(E_Client *ec, Eina_Bool scrollable)
+e_tzsh_qp_state_scrollable_update(E_Client *ec, Eina_Bool scrollable, E_Quickpanel_Type type)
{
E_Policy_Wl_Tzsh_Client *tzsh_client;
Eina_List *l;
EINA_LIST_FOREACH(polwl->tzsh_clients, l, tzsh_client)
{
+ /* check for type of qp */
+ if (tzsh_client->qp_type != type) continue;
if (!tzsh_client->tzsh) continue;
if (!tzsh_client->tzsh->ec) continue;
}
E_API void
-e_tzsh_qp_state_orientation_update(E_Client *ec, int ridx)
+e_tzsh_qp_state_orientation_update(E_Client *ec, int ridx, E_Quickpanel_Type type)
{
E_Policy_Wl_Tzsh_Client *tzsh_client;
Eina_List *l;
EINA_LIST_FOREACH(polwl->tzsh_clients, l, tzsh_client)
{
+ /* check for type of qp */
+ if (tzsh_client->qp_type != type) continue;
if (!tzsh_client->tzsh) continue;
if (!tzsh_client->tzsh->ec) continue;
#include "config.h"
#include <e.h>
+#include "e_policy_private_data.h"
Eina_Bool e_policy_wl_init(void);
void e_policy_wl_shutdown(void);
/* tzsh quickpanel */
-E_API void e_tzsh_qp_state_visible_update(E_Client *ec, Eina_Bool vis);
-E_API void e_tzsh_qp_state_orientation_update(E_Client *ec, int ridx);
-E_API void e_tzsh_qp_state_scrollable_update(E_Client *ec, Eina_Bool scrollable);
+E_API void e_tzsh_qp_state_visible_update(E_Client *ec, Eina_Bool vis, E_Quickpanel_Type type);
+E_API void e_tzsh_qp_state_orientation_update(E_Client *ec, int ridx, E_Quickpanel_Type type);
+E_API void e_tzsh_qp_state_scrollable_update(E_Client *ec, Eina_Bool scrollable, E_Quickpanel_Type type);
/* tzsh indicator */
EINTERN void e_tzsh_indicator_srv_property_change_send(E_Client *ec, int angle);
{
if (qp->type == (E_Service_Quickpanel_Type)qp_client->type)
e_tzsh_qp_state_visible_update(qp_client->ec,
- qp->effect.final_visible_state);
+ qp->effect.final_visible_state,
+ qp_client->type);
}
focused = e_client_focused_get();
{
if (qp->type == (E_Service_Quickpanel_Type)qp_client->type)
e_tzsh_qp_state_orientation_update(qp_client->ec,
- qp->rotation);
+ qp->rotation,
+ qp_client->type);
}
end:
E_SERVICE_QUICKPANEL_EFFECT_TYPE_APP_CUSTOM = TZSH_QUICKPANEL_SERVICE_EFFECT_TYPE_APP_CUSTOM,
} E_Service_Quickpanel_Effect_Type;
-typedef enum
-{
- E_SERVICE_QUICKPANEL_TYPE_UNKNOWN = 0x0, /* TZSH_QUICKPANEL_SERVICE_TYPE_UNKNOWN */
- E_SERVICE_QUICKPANEL_TYPE_SYSTEM_DEFAULT = 0x1, /* TZSH_QUICKPANEL_SERVICE_TYPE_SYSTEM_DEFAULT */
- E_SERVICE_QUICKPANEL_TYPE_CONTEXT_MENU = 0x2 /* TZSH_QUICKPANEL_SERVICE_TYPE_CONTEXT_MENU */
-} E_Service_Quickpanel_Type;
-
-typedef enum
-{
- E_QUICKPANEL_TYPE_UNKNOWN = 0,
- E_QUICKPANEL_TYPE_SYSTEM_DEFAULT = 1,
- E_QUICKPANEL_TYPE_CONTEXT_MENU = 2,
-} E_Quickpanel_Type;
-
-typedef enum
-{
- E_QUICKPANEL_REGION_TYPE_HANDLER = 0,
- E_QUICKPANEL_REGION_TYPE_CONTENTS = 1,
-} E_Quickpanel_Region_Type;
-
struct _E_QP_Mgr_Funcs
{
void (*quickpanel_client_add)(E_Client *ec, E_Service_Quickpanel_Type type);