From 8283a12ec94022f1b03a4c5083d8f47671b22179 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Thu, 15 Sep 2016 18:31:29 +0200 Subject: [PATCH] Only export a single refresh function for clients We still need client_focus_refresh() as a separate entry point, because it is used by event.c. Signed-off-by: Uli Schlachter --- event.h | 5 ++--- objects/client.c | 9 ++++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/event.h b/event.h index 5849f732..47ea4287 100644 --- a/event.h +++ b/event.h @@ -35,8 +35,8 @@ void luaA_emit_refresh(void); void drawin_refresh(void); /* objects/client.c */ +void client_refresh(void); void client_focus_refresh(void); -void client_border_refresh(void); /* objects/screen.c */ void screen_refresh(void); @@ -49,8 +49,7 @@ awesome_refresh(void) banning_refresh(); stack_refresh(); drawin_refresh(); - client_border_refresh(); - client_focus_refresh(); + client_refresh(); return xcb_flush(globalconf.connection); } diff --git a/objects/client.c b/objects/client.c index 057b76ee..845e6e1f 100644 --- a/objects/client.c +++ b/objects/client.c @@ -1128,13 +1128,20 @@ client_focus_refresh(void) win, globalconf.timestamp); } -void +static void client_border_refresh(void) { foreach(c, globalconf.clients) window_border_refresh((window_t *) *c); } +void +client_refresh(void) +{ + client_border_refresh(); + client_focus_refresh(); +} + static void border_width_callback(client_t *c, uint16_t old_width, uint16_t new_width) {