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 <psychon@znc.in>
This commit is contained in:
parent
bc6d06a305
commit
8283a12ec9
5
event.h
5
event.h
|
@ -35,8 +35,8 @@ void luaA_emit_refresh(void);
|
||||||
void drawin_refresh(void);
|
void drawin_refresh(void);
|
||||||
|
|
||||||
/* objects/client.c */
|
/* objects/client.c */
|
||||||
|
void client_refresh(void);
|
||||||
void client_focus_refresh(void);
|
void client_focus_refresh(void);
|
||||||
void client_border_refresh(void);
|
|
||||||
|
|
||||||
/* objects/screen.c */
|
/* objects/screen.c */
|
||||||
void screen_refresh(void);
|
void screen_refresh(void);
|
||||||
|
@ -49,8 +49,7 @@ awesome_refresh(void)
|
||||||
banning_refresh();
|
banning_refresh();
|
||||||
stack_refresh();
|
stack_refresh();
|
||||||
drawin_refresh();
|
drawin_refresh();
|
||||||
client_border_refresh();
|
client_refresh();
|
||||||
client_focus_refresh();
|
|
||||||
return xcb_flush(globalconf.connection);
|
return xcb_flush(globalconf.connection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1128,13 +1128,20 @@ client_focus_refresh(void)
|
||||||
win, globalconf.timestamp);
|
win, globalconf.timestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
client_border_refresh(void)
|
client_border_refresh(void)
|
||||||
{
|
{
|
||||||
foreach(c, globalconf.clients)
|
foreach(c, globalconf.clients)
|
||||||
window_border_refresh((window_t *) *c);
|
window_border_refresh((window_t *) *c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
client_refresh(void)
|
||||||
|
{
|
||||||
|
client_border_refresh();
|
||||||
|
client_focus_refresh();
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
border_width_callback(client_t *c, uint16_t old_width, uint16_t new_width)
|
border_width_callback(client_t *c, uint16_t old_width, uint16_t new_width)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue