1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

Fix file notification problem on Windows.

* src/inotify.c (inotify_callback): Set event.frame_or_window to Qnil.

* src/keyboard.c (make_lispy_event): Make a better check for the
HAVE_W32NOTIFY case when creating a Qfile_notify event.
This commit is contained in:
Michael Albinus 2025-08-12 22:05:44 +02:00
parent bb1c737531
commit 40e4394f87
2 changed files with 5 additions and 5 deletions

View file

@ -339,6 +339,7 @@ inotify_callback (int fd, void *_)
struct input_event event;
EVENT_INIT (event);
event.kind = FILE_NOTIFY_EVENT;
event.frame_or_window = Qnil;
for (ssize_t i = 0; i < n; )
{

View file

@ -7220,12 +7220,11 @@ make_lispy_event (struct input_event *event)
#ifdef USE_FILE_NOTIFY
case FILE_NOTIFY_EVENT:
#ifdef HAVE_W32NOTIFY
/* Make an event (file-notify (DESCRIPTOR ACTION FILE) CALLBACK). */
if (!NILP (event->frame_or_window)) /* HAVE_W32NOTIFY */
return list3 (Qfile_notify, event->arg, event->frame_or_window);
#else
else
return Fcons (Qfile_notify, event->arg);
#endif
#endif /* USE_FILE_NOTIFY */
case SLEEP_EVENT: