summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Otero <otero.o.daniel@gmail.com>2015-02-12 11:12:38 +0100
committerDaniel Otero <otero.o.daniel@gmail.com>2015-02-12 11:12:38 +0100
commit562e824246b9e81e65644660714db404035e693a (patch)
treea734781fdb0723bcfd3ce898789f81f34cb8c43c
parentef3ef30400150f015695df08780e589c6407e646 (diff)
Remove xkb_context initialization code from load_compose_table
xkb_context is guaranteed to be initializated from load_keymap.
-rw-r--r--i3lock.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/i3lock.c b/i3lock.c
index 02e6794..b58297e 100644
--- a/i3lock.c
+++ b/i3lock.c
@@ -145,13 +145,6 @@ static bool load_keymap(void) {
*
*/
static bool load_compose_table(const char *locale) {
- if (xkb_context == NULL) {
- if ((xkb_context = xkb_context_new(0)) == NULL) {
- fprintf(stderr, "[i3lock] could not create xkbcommon context\n");
- return false;
- }
- }
-
xkb_compose_table_unref(xkb_compose_table);
if ((xkb_compose_table = xkb_compose_table_new_from_locale(xkb_context, locale, 0)) == NULL) {