systray: merge geometry and extents
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
6922df8b46
commit
4a81695f8b
|
@ -39,8 +39,9 @@ typedef struct
|
||||||
} systray_data_t;
|
} systray_data_t;
|
||||||
|
|
||||||
static area_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;
|
area_t geometry;
|
||||||
int phys_screen = screen_virttophys(screen), n = 0;
|
int phys_screen = screen_virttophys(screen), n = 0;
|
||||||
systray_data_t *d = widget->data;
|
systray_data_t *d = widget->data;
|
||||||
|
@ -57,14 +58,6 @@ systray_geometry(widget_t *widget, int screen)
|
||||||
return geometry;
|
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
|
static void
|
||||||
systray_draw(widget_t *widget, draw_context_t *ctx,
|
systray_draw(widget_t *widget, draw_context_t *ctx,
|
||||||
area_t geometry, wibox_t *p)
|
area_t geometry, wibox_t *p)
|
||||||
|
|
Loading…
Reference in New Issue