Remove the argument to awesome_refresh()

awesome_refresh() had a xcb_connection_t as first argument. Since there is
only one connection to the X server, this argument doesn't really have any
alternatives to globalconf.connection and thus makes no sense.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Uli Schlachter 2009-04-10 17:39:11 +02:00 committed by Julien Danjou
parent 95457c5ab7
commit 4b82608952
5 changed files with 7 additions and 7 deletions

View File

@ -211,7 +211,7 @@ a_xcb_check_cb(EV_P_ ev_check *w, int revents)
p_delete(&mouse); p_delete(&mouse);
} }
awesome_refresh(globalconf.connection); awesome_refresh();
} }
static void static void
@ -542,7 +542,7 @@ main(int argc, char **argv)
xcb_flush(globalconf.connection); xcb_flush(globalconf.connection);
/* refresh everything before waiting events */ /* refresh everything before waiting events */
awesome_refresh(globalconf.connection); awesome_refresh();
/* main event loop */ /* main event loop */
ev_loop(globalconf.loop, 0); ev_loop(globalconf.loop, 0);

2
dbus.c
View File

@ -365,7 +365,7 @@ a_dbus_process_requests(EV_P_ ev_io *w, int revents)
if(nmsg) if(nmsg)
dbus_connection_flush(dbus_connection); dbus_connection_flush(dbus_connection);
awesome_refresh(globalconf.connection); awesome_refresh();
} }
static bool static bool

View File

@ -28,11 +28,11 @@
#include "layout.h" #include "layout.h"
static inline int static inline int
awesome_refresh(xcb_connection_t *c) awesome_refresh(void)
{ {
layout_refresh(); layout_refresh();
wibox_refresh(); wibox_refresh();
return xcb_flush(c); return xcb_flush(globalconf.connection);
} }
void a_xcb_set_event_handlers(void); void a_xcb_set_event_handlers(void);

2
luaa.c
View File

@ -904,7 +904,7 @@ luaA_on_timer(EV_P_ ev_timer *w, int revents)
{ {
if(globalconf.hooks.timer != LUA_REFNIL) if(globalconf.hooks.timer != LUA_REFNIL)
luaA_dofunction(globalconf.L, globalconf.hooks.timer, 0, 0); luaA_dofunction(globalconf.L, globalconf.hooks.timer, 0, 0);
awesome_refresh(globalconf.connection); awesome_refresh();
} }
/** Push a color as a string onto the stack /** Push a color as a string onto the stack

View File

@ -76,7 +76,7 @@ luaA_selection_get(lua_State *L)
*/ */
xcb_event_handle(&globalconf.evenths, event); xcb_event_handle(&globalconf.evenths, event);
p_delete(&event); p_delete(&event);
awesome_refresh(globalconf.connection); awesome_refresh();
continue; continue;
} }