From 0c191c0a477f5d5cba5828e44999952ba0b09f68 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 14 Jul 2014 12:43:56 -0400 Subject: [PATCH] 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 efe4e45a2..745752da1 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) ||