From 726550af4efc38ff35fdc8ebca73b62c2f3115ff Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 21 Aug 2008 08:12:28 +0200 Subject: [PATCH] client: print deprecate warning before return Signed-off-by: Julien Danjou --- client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.c b/client.c index c3d34e9dd..6bde20c2f 100644 --- a/client.c +++ b/client.c @@ -926,9 +926,9 @@ luaA_client_visible_get(lua_State *L) static int luaA_client_focus_get(lua_State *L) { + deprecate(); if(globalconf.screen_focus->client_focus) return luaA_client_userdata_new(L, globalconf.screen_focus->client_focus); - deprecate(); return 0; } @@ -1078,7 +1078,7 @@ luaA_client_redraw(lua_State *L) if(globalconf.screen_focus->client_focus == *c) xcb_set_input_focus(globalconf.connection, XCB_INPUT_FOCUS_POINTER_ROOT, (*c)->win, XCB_CURRENT_TIME); - + return 0; }