From 4a81695f8b260b66c3bee276b66139f2011ea3d0 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 25 Aug 2009 18:29:19 +0200 Subject: [PATCH] systray: merge geometry and extents Signed-off-by: Julien Danjou --- widgets/systray.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/widgets/systray.c b/widgets/systray.c index 37535a771..054dba8d4 100644 --- a/widgets/systray.c +++ b/widgets/systray.c @@ -39,8 +39,9 @@ typedef struct } systray_data_t; static area_t -systray_geometry(widget_t *widget, int screen) +systray_extents(lua_State *L, widget_t *widget) { + int screen = screen_virttophys(luaL_optnumber(L, -1, 1)); area_t geometry; int phys_screen = screen_virttophys(screen), n = 0; systray_data_t *d = widget->data; @@ -57,14 +58,6 @@ systray_geometry(widget_t *widget, int screen) return geometry; } -static area_t -systray_extents(lua_State *L, widget_t *widget) -{ - int screen = screen_virttophys(luaL_optnumber(L, -1, 1)); - - return systray_geometry(widget, screen); -} - static void systray_draw(widget_t *widget, draw_context_t *ctx, area_t geometry, wibox_t *p)