From 6b5e5f352c633037e7d5eb470f7d028060e2b85e Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Mon, 25 May 2009 13:37:46 +0200 Subject: [PATCH] Use the new simplewindow functions for managing a wibox' opacity Signed-off-by: Uli Schlachter --- wibox.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wibox.c b/wibox.c index f958164b..2d623810 100644 --- a/wibox.c +++ b/wibox.c @@ -645,8 +645,8 @@ luaA_wibox_index(lua_State *L) break; case A_TK_OPACITY: { - double d; - if ((d = window_opacity_get(wibox->sw.window)) >= 0) + double d = simplewindow_opacity_get(&wibox->sw); + if (d >= 0) lua_pushnumber(L, d); else return 0; @@ -857,12 +857,12 @@ luaA_wibox_newindex(lua_State *L) break; case A_TK_OPACITY: if(lua_isnil(L, 3)) - window_opacity_set(wibox->sw.window, -1); + simplewindow_opacity_set(&wibox->sw, -1); else { double d = luaL_checknumber(L, 3); if(d >= 0 && d <= 1) - window_opacity_set(wibox->sw.window, d); + simplewindow_opacity_set(&wibox->sw, d); } break; case A_TK_MOUSE_ENTER: