diff --git a/awesome.c b/awesome.c index 0516c14ef..e151e715f 100644 --- a/awesome.c +++ b/awesome.c @@ -211,7 +211,7 @@ a_xcb_check_cb(EV_P_ ev_check *w, int revents) p_delete(&mouse); } - awesome_refresh(globalconf.connection); + awesome_refresh(); } static void @@ -542,7 +542,7 @@ main(int argc, char **argv) xcb_flush(globalconf.connection); /* refresh everything before waiting events */ - awesome_refresh(globalconf.connection); + awesome_refresh(); /* main event loop */ ev_loop(globalconf.loop, 0); diff --git a/dbus.c b/dbus.c index 222979b0f..56b4b4de5 100644 --- a/dbus.c +++ b/dbus.c @@ -365,7 +365,7 @@ a_dbus_process_requests(EV_P_ ev_io *w, int revents) if(nmsg) dbus_connection_flush(dbus_connection); - awesome_refresh(globalconf.connection); + awesome_refresh(); } static bool diff --git a/event.h b/event.h index 77cee2b40..d4d26784e 100644 --- a/event.h +++ b/event.h @@ -28,11 +28,11 @@ #include "layout.h" static inline int -awesome_refresh(xcb_connection_t *c) +awesome_refresh(void) { layout_refresh(); wibox_refresh(); - return xcb_flush(c); + return xcb_flush(globalconf.connection); } void a_xcb_set_event_handlers(void); diff --git a/luaa.c b/luaa.c index b33c542fc..2960c15fb 100644 --- a/luaa.c +++ b/luaa.c @@ -904,7 +904,7 @@ luaA_on_timer(EV_P_ ev_timer *w, int revents) { if(globalconf.hooks.timer != LUA_REFNIL) luaA_dofunction(globalconf.L, globalconf.hooks.timer, 0, 0); - awesome_refresh(globalconf.connection); + awesome_refresh(); } /** Push a color as a string onto the stack diff --git a/selection.c b/selection.c index 430bed937..19f186d37 100644 --- a/selection.c +++ b/selection.c @@ -76,7 +76,7 @@ luaA_selection_get(lua_State *L) */ xcb_event_handle(&globalconf.evenths, event); p_delete(&event); - awesome_refresh(globalconf.connection); + awesome_refresh(); continue; }