X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin3_src%2FWM%2Fwm_hotkeys.c;h=00041a94de672544cca8a81defafb8afbf78e960;hb=3ad4532bb952dbcb28a2b9fa72d7f1f87b5f8fd4;hp=bdea09c58af1676adc63572425aa04e4f6fc0ae5;hpb=fb3abbad5dfd71ea2b190d0b33d9c57e879fb15a;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin3_src/WM/wm_hotkeys.c b/Usermode/Applications/axwin3_src/WM/wm_hotkeys.c index bdea09c5..00041a94 100644 --- 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)); - h->Next = NULL; - if( gpWM_Hotkeys ) - gpWM_Hotkeys->Next = h; + h->Next = gpWM_Hotkeys; 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; + t->Next = NULL; // TODO: Register to be informed when the window dies/closes?