diff options
-rw-r--r-- | tests/test_config.c | 4 | ||||
-rw-r--r-- | tests/test_monitor.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_config.c b/tests/test_config.c index 29ecb23..5ed288b 100644 --- a/tests/test_config.c +++ b/tests/test_config.c @@ -93,11 +93,11 @@ main(int argc, char *const argv[]) fprintf(stderr, "Could not open display\n"); exit(1); } + if (debug_level != -1) + xkl_set_debug_level(debug_level); XklEngine *engine = xkl_engine_get_instance(dpy); if (engine != NULL) { XklConfigRec *current_config, *r2; - if (debug_level != -1) - xkl_set_debug_level(debug_level); xkl_debug(0, "Xklavier initialized\n"); XklConfigRegistry *config = xkl_config_registry_get_instance(engine); diff --git a/tests/test_monitor.c b/tests/test_monitor.c index 20cfd9a..c243e09 100644 --- a/tests/test_monitor.c +++ b/tests/test_monitor.c @@ -79,11 +79,11 @@ main(int argc, char *argv[]) fprintf(stderr, "Could not open display\n"); exit(1); } + if (debug_level != -1) + xkl_set_debug_level(debug_level); XklEngine *engine = xkl_engine_get_instance(dpy); if (engine != NULL) { XklConfigRec *current_config; - if (debug_level != -1) - xkl_set_debug_level(debug_level); xkl_debug(0, "Xklavier initialized\n"); XklConfigRegistry *config = xkl_config_registry_get_instance(engine); |