From 279f3c6d602fe7d43df20db2775b204b2c5bfe3c Mon Sep 17 00:00:00 2001 From: Po Lu Date: Fri, 4 Feb 2022 12:10:30 +0000 Subject: [PATCH] Implement auto-raise on Haiku * src/haikuterm.c (haiku_read_socket): Implement auto-raising of frames that have that parameter set. --- src/haikuterm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/haikuterm.c b/src/haikuterm.c index e8c734d6711..5d90acb4434 100644 --- a/src/haikuterm.c +++ b/src/haikuterm.c @@ -2811,6 +2811,12 @@ haiku_read_socket (struct terminal *terminal, struct input_event *hold_quit) last_mouse_window = window; } + if (f->auto_raise) + { + if (!BWindow_is_active (FRAME_HAIKU_WINDOW (f))) + haiku_frame_raise_lower (f, 1); + } + if (!NILP (help_echo_string) || !NILP (previous_help_echo_string)) do_help = 1; -- 2.39.5