From f4648c2e26b2ac424fc45db01a8990d73f9cb487 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 21 Sep 2008 11:47:29 +0200 Subject: [PATCH] wibox: wibox_refresh merge statusbar and titlebar Signed-off-by: Julien Danjou --- event.h | 6 ++---- luaa.c | 2 ++ wibox.c | 11 +++++++++++ wibox.h | 2 ++ 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/event.h b/event.h index dcf1aeefb..77cee2b40 100644 --- a/event.h +++ b/event.h @@ -24,16 +24,14 @@ #include -#include "statusbar.h" -#include "titlebar.h" +#include "wibox.h" #include "layout.h" static inline int awesome_refresh(xcb_connection_t *c) { layout_refresh(); - statusbar_refresh(); - titlebar_refresh(); + wibox_refresh(); return xcb_flush(c); } diff --git a/luaa.c b/luaa.c index 308e59232..32783faee 100644 --- a/luaa.c +++ b/luaa.c @@ -46,6 +46,8 @@ #include "client.h" #include "screen.h" #include "event.h" +#include "statusbar.h" +#include "titlebar.h" #include "mouse.h" #include "layouts/tile.h" #include "common/socket.h" diff --git a/wibox.c b/wibox.c index 0c89eef00..88504936c 100644 --- a/wibox.c +++ b/wibox.c @@ -19,4 +19,15 @@ * */ +#include "wibox.h" +#include "statusbar.h" +#include "titlebar.h" + +void +wibox_refresh(void) +{ + statusbar_refresh(); + titlebar_refresh(); +} + // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80 diff --git a/wibox.h b/wibox.h index c8c81705f..1d3dd3244 100644 --- a/wibox.h +++ b/wibox.h @@ -28,6 +28,8 @@ #include "common/refcount.h" #include "common/array.h" +void wibox_refresh(void); + static inline void wibox_delete(wibox_t **wibox) {