]> git.eshelyaron.com Git - emacs.git/commit
Fix resetting keyboard hook state on MS-Windows
authorRaffael Stocker <r.stocker@mnet-mail.de>
Mon, 4 Mar 2024 18:06:07 +0000 (19:06 +0100)
committerEshel Yaron <me@eshelyaron.com>
Fri, 15 Mar 2024 08:59:21 +0000 (09:59 +0100)
commit80f4ea6f1f93e0f308517d4678f05f4aab5a1f90
tree1a87cdb6b5846e17d52d8589299292057810a81a
parent0d6b169fd62cb13a690912cbd8f784519f75fc79
Fix resetting keyboard hook state on MS-Windows

Register session notifications so Emacs is notified when the
computer is being locked, as required to reset the low level
keyboard hook state.  (Bug#69083).
* src/w32term.h:
* src/w32fns.c (setup_w32_kbdhook, remove_w32_kbdhook)
(w32_wnd_proc, globals_of_w32fns, maybe_pass_notification):
Register and manage session notifications in GUI Emacs.
* src/w32console.c (initialize_w32_display, find_ime_window):
* src/w32xfns.c (drain_message_queue): Register notifications
and reset keyboard hook state in console Emacs.
* src/w32.c (term_ntproc): Un-register session notifications
when terminating.

(cherry picked from commit e7b1743b798cab338e0fa7b98dfb20c0ba7204b1)
src/w32.c
src/w32console.c
src/w32fns.c
src/w32term.h
src/w32xfns.c