git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
InitRD - Libc++, libm, bochs, dbserver
[tpg/acess2.git]
/
Usermode
/
Applications
/
axwin3_src
/
WM
/
wm_hotkeys.c
diff --git
a/Usermode/Applications/axwin3_src/WM/wm_hotkeys.c
b/Usermode/Applications/axwin3_src/WM/wm_hotkeys.c
index
bdea09c
..
e18f44c
100644
(file)
--- a/
Usermode/Applications/axwin3_src/WM/wm_hotkeys.c
+++ b/
Usermode/Applications/axwin3_src/WM/wm_hotkeys.c
@@
-41,9
+41,7
@@
void WM_Hotkey_Register(int nKeys, uint32_t *Keys, const char *ActionName)
strcpy((char*)h->Target, ActionName);
memcpy(h->Keys, Keys, nKeys * sizeof(uint32_t));
strcpy((char*)h->Target, ActionName);
memcpy(h->Keys, Keys, nKeys * sizeof(uint32_t));
- h->Next = NULL;
- if( gpWM_Hotkeys )
- gpWM_Hotkeys->Next = h;
+ h->Next = gpWM_Hotkeys;
gpWM_Hotkeys = h;
}
gpWM_Hotkeys = h;
}
@@
-64,6
+62,7
@@
void WM_Hotkey_RegisterAction(const char *ActionName, tWindow *Target, uint16_t
strcpy((char*)t->Name, ActionName);
t->Window = Target;
t->Index = Index;
strcpy((char*)t->Name, ActionName);
t->Window = Target;
t->Index = Index;
+ t->Next = NULL;
// TODO: Register to be informed when the window dies/closes?
// TODO: Register to be informed when the window dies/closes?
@@
-101,7
+100,7
@@
void WM_Hotkey_KeyUp(uint32_t Scancode)
if( _IsKeySet(hk->Keys[i]) ) continue ;
break;
}
if( _IsKeySet(hk->Keys[i]) ) continue ;
break;
}
- _SysDebug("%i/%i satisfied for %s", i, hk->nKeys, hk->Target);
+
//
_SysDebug("%i/%i satisfied for %s", i, hk->nKeys, hk->Target);
if( i != hk->nKeys )
continue ;
if( i != hk->nKeys )
continue ;
UCC
git Repository :: git.ucc.asn.au