client: export size hints

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-09-30 11:45:41 +02:00
parent c1566f39c5
commit caa63d43d7
2 changed files with 12 additions and 0 deletions

View file

@ -1491,6 +1491,17 @@ luaA_client_index(lua_State *L)
case A_TK_URGENT:
lua_pushboolean(L, (*c)->isurgent);
break;
case A_TK_SIZEHINTS:
lua_newtable(L);
lua_pushboolean(L, (*c)->size_hints.flags & XCB_SIZE_HINT_US_POSITION);
lua_setfield(L, -2, "user_position");
lua_pushboolean(L, (*c)->size_hints.flags & XCB_SIZE_HINT_US_SIZE);
lua_setfield(L, -2, "user_size");
lua_pushboolean(L, (*c)->size_hints.flags & XCB_SIZE_HINT_P_POSITION);
lua_setfield(L, -2, "program_position");
lua_pushboolean(L, (*c)->size_hints.flags & XCB_SIZE_HINT_P_SIZE);
lua_setfield(L, -2, "program_size");
break;
default:
return 0;
}

View file

@ -59,6 +59,7 @@ selected
shadow
shadow_offset
show_icons
sizehints
south
sticky
text