diff --git a/linux/libkmfl/src/kmfl_interpreter.c b/linux/libkmfl/src/kmfl_interpreter.c index c845615b89..d47edcc2f2 100644 --- a/linux/libkmfl/src/kmfl_interpreter.c +++ b/linux/libkmfl/src/kmfl_interpreter.c @@ -424,23 +424,27 @@ int process_rule(KMSI *p_kmsi, XRULE *rp, ITEM *any_index, int usekeys) // Then output the output string (excepting deadkeys), and add it to the history for(n=0, p=output; n> 16) & 0xFF; DBGMSG(1, "DAR - libkmfl - ITEM_KEYSYM key:%x, state: %x\n", key, state); - forward_keyevent(p_kmsi->connection, key, state); - clear_history(p_kmsi); - } - else - { - output_item(p_kmsi->connection,*p); - add_to_history(p_kmsi,*p); - } - } + forward_keyevent(p_kmsi->connection, key, state); + clear_history(p_kmsi); + } + else + { + output_item(p_kmsi->connection,*p); + add_to_history(p_kmsi,*p); + } + } } // Reset pointer and continue diff --git a/linux/libkmfl/src/kmfl_messages.c b/linux/libkmfl/src/kmfl_messages.c index f85058752c..f9fd4f5047 100755 --- a/linux/libkmfl/src/kmfl_messages.c +++ b/linux/libkmfl/src/kmfl_messages.c @@ -20,8 +20,8 @@ void DBGMSG(int debug,char *fmt,...) if((debug<0) || ((kmfl_debug&debug)!=0)) { - debugfile=fopen("/tmp/libkmfldebug.log", "a"); -// debugfile=stderr; +// debugfile=fopen("/tmp/libkmfldebug.log", "a"); + debugfile=stderr; fprintf(debugfile,"debug: "); va_start(args,fmt); vfprintf(debugfile,fmt,args);