summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuentin Glidic <sardemff7+git@sardemff7.net>2017-06-01 17:46:51 +0200
committerQuentin Glidic <sardemff7+git@sardemff7.net>2017-06-01 17:46:53 +0200
commitdbac6fba5c6158e0bd3819db71940ec4ebddfbae (patch)
tree6ae0515abf40864dd5e30626d436f1b6ef4a2510
parente576bc441cccd1958166b9bc121363cbfe2f5e1b (diff)
rofi: Make sure we parsed the config before parsing bindings
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
-rw-r--r--source/rofi.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/rofi.c b/source/rofi.c
index 9ef3acf4..daf8123c 100644
--- a/source/rofi.c
+++ b/source/rofi.c
@@ -790,10 +790,6 @@ int main ( int argc, char *argv[] )
TICK_N ( "Setup mainloop" );
bindings = nk_bindings_new ();
- if ( !parse_keys_abe ( bindings ) ) {
- cleanup ();
- return EXIT_FAILURE;
- }
if ( !display_setup ( main_loop, bindings ) ) {
g_warning ( "Connection has error" );
@@ -831,6 +827,11 @@ int main ( int argc, char *argv[] )
config_parse_cmd_options ( );
TICK_N ( "Load cmd config " );
+ if ( !parse_keys_abe ( bindings ) ) {
+ cleanup ();
+ return EXIT_FAILURE;
+ }
+
if ( !dmenu_mode ) {
// setup_modi
if ( setup_modi () ) {