static Eina_Bool _e_policy_wl_display_client_remove_from_list(Eina_List** list, E_Client *ec);
static void _e_policy_wl_display_hook_client_del(void *d EINA_UNUSED, E_Client *ec);
-static void _e_policy_wl_display_hook_client_visibility(void *d EINA_UNUSED, E_Client *ec);
static Eina_Bool _e_policy_wl_display_cb_client_remove(void *d EINA_UNUSED, int type EINA_UNUSED, void *event);
_e_policy_wl_display_client_remove_from_list(&_screen_mode_client_list, ec);
}
-static void
-_e_policy_wl_display_hook_client_visibility(void *d EINA_UNUSED, E_Client *ec)
-{
- if (ec->visibility.changed)
- {
- e_policy_display_screen_mode_apply();
- }
-}
-
static Eina_Bool
_e_policy_wl_display_cb_client_remove(void *d EINA_UNUSED, int type EINA_UNUSED, void *event)
{
/* hook functions */
E_CLIENT_HOOK_APPEND(_display_control_hooks, E_CLIENT_HOOK_DEL, _e_policy_wl_display_hook_client_del, NULL);
- E_CLIENT_HOOK_APPEND(_display_control_hooks, E_CLIENT_HOOK_EVAL_VISIBILITY, _e_policy_wl_display_hook_client_visibility, NULL);
/* handler functions */
E_LIST_HANDLER_APPEND(_display_control_handlers, E_EVENT_CLIENT_REMOVE, _e_policy_wl_display_cb_client_remove, NULL);
#include "e_comp_input_intern.h"
#include "e_comp_intern.h"
#include "e_process_intern.h"
+#include "e_policy_wl_display_intern.h"
#define ZONE_EC_DATA_KEY "E_Zone_Client"
touched_ec = comp_wl->ptr.ec ? comp_wl->ptr.ec : comp_wl->touch.faked_ec;
EINA_LIST_FOREACH(changed_list, l, ec)
{
+ e_policy_display_screen_mode_apply();
e_policy_client_visibility_evaluate(ec);
if (e_client_visibility_get(ec) == E_VISIBILITY_UNOBSCURED)
e_process_thaw(ec->netwm.pid);