From 835ac18a76a30e2a5142e6e643e858bb05e83642 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 4 Jun 2023 20:11:40 +0800 Subject: [PATCH] ; * src/keyboard.c: Fix build without window system --- src/keyboard.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/keyboard.c b/src/keyboard.c index ec9a6dc712a..116846611ce 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -5875,6 +5875,8 @@ coords_in_menu_bar_window (struct frame *f, int x, int y) #endif +#ifdef HAVE_WINDOW_SYSTEM + /* Return whether or not the coordinates X and Y are inside the tab-bar window of the given frame F. */ @@ -5894,6 +5896,8 @@ coords_in_tab_bar_window (struct frame *f, int x, int y) && x <= WINDOW_RIGHT_EDGE_X (window)); } +#endif /* HAVE_WINDOW_SYSTEM */ + /* Given a struct input_event, build the lisp event which represents it. If EVENT is 0, build a mouse movement event from the mouse movement buffer, which should have a movement event in it. -- 2.39.2