From bb05a3809a9a8356ac790fa4578fa13cce972b1a Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 12 Nov 2008 15:43:33 +0100 Subject: [PATCH] client: document and rename size_hints Signed-off-by: Julien Danjou --- client.c | 4 +++- common/tokenize.gperf | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/client.c b/client.c index 28ab497d..2aec5051 100644 --- a/client.c +++ b/client.c @@ -1362,6 +1362,8 @@ luaA_client_newindex(lua_State *L) * \lfield ontop The client is on top of every other windows. * \lfield fullscreen The client is fullscreen or not. * \lfield transient_for Return the client the window is transient for. + * \lfield size_hints A table with size hints of the client: user_position, + * user_size, program_position and program_size. */ static int luaA_client_index(lua_State *L) @@ -1508,7 +1510,7 @@ luaA_client_index(lua_State *L) case A_TK_URGENT: lua_pushboolean(L, (*c)->isurgent); break; - case A_TK_SIZEHINTS: + case A_TK_SIZE_HINTS: lua_newtable(L); lua_pushboolean(L, (*c)->size_hints.flags & XCB_SIZE_HINT_US_POSITION); lua_setfield(L, -2, "user_position"); diff --git a/common/tokenize.gperf b/common/tokenize.gperf index 0cb0d0bd..9d1e3409 100644 --- a/common/tokenize.gperf +++ b/common/tokenize.gperf @@ -76,7 +76,7 @@ shadow shadow_offset Shift show_icons -sizehints +size_hints skip_taskbar south start