load_configuration: Remove conn argument
This commit is contained in:
parent
f9c4011691
commit
4a2cacebf6
|
@ -421,7 +421,7 @@ bool parse_configuration(const char *override_configpath, bool use_nagbar);
|
|||
* configuration file.
|
||||
*
|
||||
*/
|
||||
void load_configuration(xcb_connection_t *conn, const char *override_configfile, bool reload);
|
||||
void load_configuration(const char *override_configfile, bool reload);
|
||||
|
||||
/**
|
||||
* Ungrabs all keys, to be called before re-grabbing the keys because of a
|
||||
|
|
|
@ -1573,7 +1573,7 @@ void cmd_reload(I3_CMD) {
|
|||
LOG("reloading\n");
|
||||
kill_nagbar(&config_error_nagbar_pid, false);
|
||||
kill_nagbar(&command_error_nagbar_pid, false);
|
||||
load_configuration(conn, NULL, true);
|
||||
load_configuration(NULL, true);
|
||||
x_set_i3_atoms();
|
||||
/* Send an IPC event just in case the ws names have changed */
|
||||
ipc_send_workspace_event("reload", NULL, NULL);
|
||||
|
|
|
@ -73,7 +73,7 @@ bool parse_configuration(const char *override_configpath, bool use_nagbar) {
|
|||
* configuration file.
|
||||
*
|
||||
*/
|
||||
void load_configuration(xcb_connection_t *conn, const char *override_configpath, bool reload) {
|
||||
void load_configuration(const char *override_configpath, bool reload) {
|
||||
if (reload) {
|
||||
/* If we are currently in a binding mode, we first revert to the
|
||||
* default since we have no guarantee that the current mode will even
|
||||
|
|
|
@ -586,7 +586,7 @@ int main(int argc, char *argv[]) {
|
|||
#include "atoms.xmacro"
|
||||
#undef xmacro
|
||||
|
||||
load_configuration(conn, override_configpath, false);
|
||||
load_configuration(override_configpath, false);
|
||||
|
||||
if (config.ipc_socket_path == NULL) {
|
||||
/* Fall back to a file name in /tmp/ based on the PID */
|
||||
|
|
Loading…
Reference in New Issue