From 20241e2c764263ebf31cfb0c6a7a0d3b9ba52429 Mon Sep 17 00:00:00 2001 From: Alexander Gramiak Date: Sun, 19 May 2019 20:18:54 -0600 Subject: [PATCH] Use HAVE_WINDOW_SYSTEM over HAVE_X11 || HAVE_NTGUI || HAVE_NS * src/keyboard.c (kbd_buffer_get_event, make_lispy_event): Use HAVE_WINDOW_SYSTEM. --- src/keyboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/keyboard.c b/src/keyboard.c index 5f2b7afe6d1..bb4d185c914 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -3909,7 +3909,7 @@ kbd_buffer_get_event (KBOARD **kbp, case END_SESSION_EVENT: case LANGUAGE_CHANGE_EVENT: #endif -#if defined (HAVE_X11) || defined (HAVE_NTGUI) || defined (HAVE_NS) +#ifdef HAVE_WINDOW_SYSTEM case DELETE_WINDOW_EVENT: case ICONIFY_EVENT: case DEICONIFY_EVENT: @@ -5283,7 +5283,7 @@ make_lispy_event (struct input_event *event) switch (event->kind) { -#if defined (HAVE_X11) || defined (HAVE_NTGUI) || defined (HAVE_NS) +#ifdef HAVE_WINDOW_SYSTEM case DELETE_WINDOW_EVENT: /* Make an event (delete-frame (FRAME)). */ return list2 (Qdelete_frame, list1 (event->frame_or_window)); -- 2.39.2