systray: merge geometry and extents

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-25 18:29:19 +02:00
parent 6922df8b46
commit 4a81695f8b
1 changed files with 2 additions and 9 deletions

View File

@ -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)