discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=0c191c0a477f5d5cba5828e44999952ba0b09f68

commit 0c191c0a477f5d5cba5828e44999952ba0b09f68
Author: Mike Blumenkrantz <[email protected]>
Date:   Mon Jul 14 12:43:56 2014 -0400

    add missing client type checks
---
 src/bin/e_client.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/bin/e_client.c b/src/bin/e_client.c
index efe4e45..745752d 100644
--- a/src/bin/e_client.c
+++ b/src/bin/e_client.c
@@ -3253,6 +3253,8 @@ e_client_refocus(void)
 EAPI void
 e_client_focus_set_with_pointer(E_Client *ec)
 {
+   E_OBJECT_CHECK(ec);
+   E_OBJECT_TYPE_CHECK(ec, E_CLIENT_TYPE);
    /* note: this is here as it seems there are enough apps that do not even
     * expect us to emulate a look of focus but not actually set x input
     * focus as we do - so simply abort any focuse set on such windows */
@@ -3379,6 +3381,8 @@ e_client_focused_set(E_Client *ec)
 EAPI void
 e_client_activate(E_Client *ec, Eina_Bool just_do_it)
 {
+   E_OBJECT_CHECK(ec);
+   E_OBJECT_TYPE_CHECK(ec, E_CLIENT_TYPE);
    if ((e_config->focus_setting == E_FOCUS_NEW_WINDOW) ||
        ((ec->parent) &&
         ((e_config->focus_setting == E_FOCUS_NEW_DIALOG) ||

-- 


Reply via email to