summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-02-10 17:23:44 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-02-10 17:24:13 -0500
commit2f6f31f2a7b90a806ea06c2f9d87d2dd1906dfcd (patch)
tree8bb8f9d4bf8b87537020fdf4deb5f19a4e4a5277
parent25240fb86dc536359b9b6fad8a3a48c56b6c6b28 (diff)
downloadenlightenment-2f6f31f2a7b90a806ea06c2f9d87d2dd1906dfcd.tar.gz
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
-rw-r--r--src/bin/e_client.c1
-rw-r--r--src/bin/e_client.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/e_client.c b/src/bin/e_client.c
index 4eee680eb4..1d04d36d81 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 5457868787..edcb1086a2 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;