mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
Revert "screen: Add screen.by_coords()"
This reverts commit 826861d967
.
This commit is contained in:
parent
826861d967
commit
eb38654cae
1 changed files with 0 additions and 17 deletions
17
screen.c
17
screen.c
|
@ -662,26 +662,9 @@ luaA_screen_count(lua_State *L)
|
|||
return 1;
|
||||
}
|
||||
|
||||
/** Get a screen by coordinates.
|
||||
* \param L The Lua VM state.
|
||||
* \return The number of elements pushed on stack.
|
||||
*
|
||||
* \luastack
|
||||
* \lreturn The screen count, at least 1.
|
||||
*/
|
||||
static int
|
||||
luaA_screen_by_coords(lua_State *L)
|
||||
{
|
||||
int x = luaL_checknumber(L, 1);
|
||||
int y = luaL_checknumber(L, 2);
|
||||
luaA_pushscreen(L, screen_getbycoord(x, y));
|
||||
return 1;
|
||||
}
|
||||
|
||||
const struct luaL_reg awesome_screen_methods[] =
|
||||
{
|
||||
{ "count", luaA_screen_count },
|
||||
{ "by_coords", luaA_screen_by_coords },
|
||||
{ "__index", luaA_screen_module_index },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue