neutrinordp: minor changes, coding style, log level
This commit is contained in:
parent
eaa801f134
commit
b30e5ca14a
@ -27,7 +27,7 @@
|
|||||||
#ifdef XRDP_DEBUG
|
#ifdef XRDP_DEBUG
|
||||||
#define LOG_LEVEL 99
|
#define LOG_LEVEL 99
|
||||||
#else
|
#else
|
||||||
#define LOG_LEVEL 0
|
#define LOG_LEVEL 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define LLOG(_level, _args) \
|
#define LLOG(_level, _args) \
|
||||||
@ -195,12 +195,13 @@ lxrdp_event(struct mod *mod, int msg, long param1, long param2,
|
|||||||
switch (msg)
|
switch (msg)
|
||||||
{
|
{
|
||||||
case 15: /* key down */
|
case 15: /* key down */
|
||||||
// Before we handle the first character we synchronize
|
/* Before we handle the first character we synchronize
|
||||||
// capslock and numlock.
|
capslock and numlock. */
|
||||||
// We collect the state during the first synchronize ( see msg 17)
|
/* We collect the state during the first synchronize
|
||||||
|
( see msg 17) */
|
||||||
if (!mod->bool_keyBoardSynced)
|
if (!mod->bool_keyBoardSynced)
|
||||||
{
|
{
|
||||||
LLOGLN(0, ("Additional Sync event handled : %d",mod->keyBoardLockInfo));
|
LLOGLN(11, ("Additional Sync event handled : %d", mod->keyBoardLockInfo));
|
||||||
mod->inst->input->SynchronizeEvent(mod->inst->input, mod->keyBoardLockInfo);
|
mod->inst->input->SynchronizeEvent(mod->inst->input, mod->keyBoardLockInfo);
|
||||||
mod->bool_keyBoardSynced = 1;
|
mod->bool_keyBoardSynced = 1;
|
||||||
}
|
}
|
||||||
@ -211,10 +212,11 @@ lxrdp_event(struct mod *mod, int msg, long param1, long param2,
|
|||||||
break;
|
break;
|
||||||
case 17: /* Synchronize */
|
case 17: /* Synchronize */
|
||||||
LLOGLN(11, ("Synchronized event handled : %d",param1));
|
LLOGLN(11, ("Synchronized event handled : %d",param1));
|
||||||
// In some situations the Synchronize event come to early.
|
/* In some situations the Synchronize event come to early.
|
||||||
// Therefore we store this information and use it when we
|
Therefore we store this information and use it when we
|
||||||
// receive the first keyboard event
|
receive the first keyboard event
|
||||||
// Without this fix numlock and capslock can come out of sync.
|
Without this fix numlock and capslock can come
|
||||||
|
out of sync. */
|
||||||
mod->inst->input->SynchronizeEvent(mod->inst->input, param1);
|
mod->inst->input->SynchronizeEvent(mod->inst->input, param1);
|
||||||
if (!mod->bool_keyBoardSynced)
|
if (!mod->bool_keyBoardSynced)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user