client: print deprecate warning before return

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-21 08:12:28 +02:00
parent d755a6bb64
commit 726550af4e
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}