]> git.eshelyaron.com Git - emacs.git/commitdiff
Implement auto-raise on Haiku
authorPo Lu <luangruo@yahoo.com>
Fri, 4 Feb 2022 12:10:30 +0000 (12:10 +0000)
committerPo Lu <luangruo@yahoo.com>
Fri, 4 Feb 2022 12:11:29 +0000 (12:11 +0000)
* src/haikuterm.c (haiku_read_socket): Implement auto-raising
of frames that have that parameter set.

src/haikuterm.c

index e8c734d6711f9a235e28a3c4eb63f90c9bbe66aa..5d90acb4434c763e7dfcbef090f5ae5a188609f6 100644 (file)
@@ -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;