From 2f6f31f2a7b90a806ea06c2f9d87d2dd1906dfcd Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 10 Feb 2017 17:23:44 -0500 Subject: [PATCH] add client hook for UNIGNORE UNIGNORE is the hook to watch for wl clients as they are added; the ignore mechanism prevents most of the compositor from processing clients. this is a stupid method from an api perspective since it's different in x11 and wl, so it should probably be improved on in the future --- src/bin/e_client.c | 1 + src/bin/e_client.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/bin/e_client.c b/src/bin/e_client.c index 4eee680eb..1d04d36d8 100644 --- a/src/bin/e_client.c +++ b/src/bin/e_client.c @@ -2568,6 +2568,7 @@ e_client_unignore(E_Client *ec) focus_stack = eina_list_append(focus_stack, ec); } _e_client_event_simple(ec, E_EVENT_CLIENT_ADD); + _e_client_hook_call(E_CLIENT_HOOK_UNIGNORE, ec); } E_API E_Client * diff --git a/src/bin/e_client.h b/src/bin/e_client.h index 545786878..edcb1086a 100644 --- a/src/bin/e_client.h +++ b/src/bin/e_client.h @@ -169,6 +169,7 @@ typedef enum _E_Client_Hook_Point E_CLIENT_HOOK_DEL, E_CLIENT_HOOK_UNREDIRECT, E_CLIENT_HOOK_REDIRECT, + E_CLIENT_HOOK_UNIGNORE, E_CLIENT_HOOK_LAST, } E_Client_Hook_Point;