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:
parent
95457c5ab7
commit
4b82608952
|
@ -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);
|
||||
|
|
2
dbus.c
2
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
|
||||
|
|
4
event.h
4
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);
|
||||
|
|
2
luaa.c
2
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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue