client: print deprecate warning before return
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
d755a6bb64
commit
726550af4e
4
client.c
4
client.c
|
@ -926,9 +926,9 @@ luaA_client_visible_get(lua_State *L)
|
||||||
static int
|
static int
|
||||||
luaA_client_focus_get(lua_State *L)
|
luaA_client_focus_get(lua_State *L)
|
||||||
{
|
{
|
||||||
|
deprecate();
|
||||||
if(globalconf.screen_focus->client_focus)
|
if(globalconf.screen_focus->client_focus)
|
||||||
return luaA_client_userdata_new(L, globalconf.screen_focus->client_focus);
|
return luaA_client_userdata_new(L, globalconf.screen_focus->client_focus);
|
||||||
deprecate();
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1078,7 +1078,7 @@ luaA_client_redraw(lua_State *L)
|
||||||
if(globalconf.screen_focus->client_focus == *c)
|
if(globalconf.screen_focus->client_focus == *c)
|
||||||
xcb_set_input_focus(globalconf.connection, XCB_INPUT_FOCUS_POINTER_ROOT,
|
xcb_set_input_focus(globalconf.connection, XCB_INPUT_FOCUS_POINTER_ROOT,
|
||||||
(*c)->win, XCB_CURRENT_TIME);
|
(*c)->win, XCB_CURRENT_TIME);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue