aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Albinus2025-08-12 22:05:44 +0200
committerMichael Albinus2025-08-12 22:05:44 +0200
commit40e4394f87909f5d6c94d59cf3aced9bc65fa32a (patch)
tree32221814787f5bba4a96bdc2918f24676017001b /src
parentbb1c737531c8d2e78a77b29ddd2db5b89c9c6810 (diff)
downloademacs-40e4394f87909f5d6c94d59cf3aced9bc65fa32a.tar.gz
emacs-40e4394f87909f5d6c94d59cf3aced9bc65fa32a.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/inotify.c1
-rw-r--r--src/keyboard.c9
2 files changed, 5 insertions, 5 deletions
diff --git a/src/inotify.c b/src/inotify.c
index c29d940c984..456a9b22a80 100644
--- a/src/inotify.c
+++ b/src/inotify.c
@@ -339,6 +339,7 @@ inotify_callback (int fd, void *_)
339 struct input_event event; 339 struct input_event event;
340 EVENT_INIT (event); 340 EVENT_INIT (event);
341 event.kind = FILE_NOTIFY_EVENT; 341 event.kind = FILE_NOTIFY_EVENT;
342 event.frame_or_window = Qnil;
342 343
343 for (ssize_t i = 0; i < n; ) 344 for (ssize_t i = 0; i < n; )
344 { 345 {
diff --git a/src/keyboard.c b/src/keyboard.c
index 5feb0fe231e..a9cbd107dde 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -7220,12 +7220,11 @@ make_lispy_event (struct input_event *event)
7220 7220
7221#ifdef USE_FILE_NOTIFY 7221#ifdef USE_FILE_NOTIFY
7222 case FILE_NOTIFY_EVENT: 7222 case FILE_NOTIFY_EVENT:
7223#ifdef HAVE_W32NOTIFY
7224 /* Make an event (file-notify (DESCRIPTOR ACTION FILE) CALLBACK). */ 7223 /* Make an event (file-notify (DESCRIPTOR ACTION FILE) CALLBACK). */
7225 return list3 (Qfile_notify, event->arg, event->frame_or_window); 7224 if (!NILP (event->frame_or_window)) /* HAVE_W32NOTIFY */
7226#else 7225 return list3 (Qfile_notify, event->arg, event->frame_or_window);
7227 return Fcons (Qfile_notify, event->arg); 7226 else
7228#endif 7227 return Fcons (Qfile_notify, event->arg);
7229#endif /* USE_FILE_NOTIFY */ 7228#endif /* USE_FILE_NOTIFY */
7230 7229
7231 case SLEEP_EVENT: 7230 case SLEEP_EVENT: