luaA_window_get_opacity: Always return a number

What's the point of distinguishing between "opacity 1" and "no opacity set"?
This commit makes awesome handle both cases identically.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2012-10-19 13:10:13 +02:00
parent c4a7f80e26
commit 1115457ac8
1 changed files with 4 additions and 4 deletions

View File

@ -131,12 +131,12 @@ static int
luaA_window_get_opacity(lua_State *L, window_t *window)
{
if(window->opacity >= 0)
{
lua_pushnumber(L, window->opacity);
else
/* Let's always return some "good" value */
lua_pushnumber(L, 1);
return 1;
}
return 0;
}
/** Set the window border color.
* \param L The Lua VM state.