summaryrefslogtreecommitdiff
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-07-07 10:50:49 +0800
committerPo Lu <luangruo@yahoo.com>2022-07-07 10:50:49 +0800
commitca58872a5370bc9683c8bc0128c1f896410fdb6b (patch)
tree01d9fd0047d8acdcc5336e2fb211d91a5dbf1192 /src/keyboard.c
parentfd016ea99724f7abedfddbb470ab96ece6ddf4ae (diff)
downloademacs-ca58872a5370bc9683c8bc0128c1f896410fdb6b.tar.gz
Fix NS build
* src/keyboard.c (process_special_events): Don't define copy and moved events on the wrong toolkit.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 76dc3732b54..84a7a0a38a5 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -4361,12 +4361,14 @@ static void
process_special_events (void)
{
union buffered_input_event *event;
+#if defined HAVE_X11 || defined HAVE_PGTK || defined HAVE_HAIKU
#ifndef HAVE_HAIKU
struct selection_input_event copy;
#else
struct input_event copy;
#endif
int moved_events;
+#endif
for (event = kbd_fetch_ptr; event != kbd_store_ptr;
event = next_kbd_event (event))