]> git.eshelyaron.com Git - emacs.git/commitdiff
Disable auto-lowering and raising on Haiku when a popup is active
authorPo Lu <luangruo@yahoo.com>
Tue, 15 Feb 2022 07:21:18 +0000 (07:21 +0000)
committerPo Lu <luangruo@yahoo.com>
Tue, 15 Feb 2022 07:21:18 +0000 (07:21 +0000)
* src/haikuterm.c (haiku_new_focus_frame):
(haiku_read_socket): Don't raise or lower if popup is activated.

src/haikuterm.c

index 4547380783b81fe21a956079f16b0e49950f258a..f4e2452a6c97802f18c21059715b8484c5fe5ecb 100644 (file)
@@ -406,7 +406,7 @@ haiku_new_focus_frame (struct frame *frame)
 
       x_display_list->focused_frame = frame;
 
-      if (frame && frame->auto_raise)
+      if (frame && frame->auto_raise && !popup_activated_p)
        haiku_frame_raise_lower (frame, 1);
     }
   unblock_input ();
@@ -2775,7 +2775,7 @@ haiku_read_socket (struct terminal *terminal, struct input_event *hold_quit)
                    need_flush = 1;
                  }
 
-               if (f->auto_lower)
+               if (f->auto_lower && !popup_activated_p)
                  haiku_frame_raise_lower (f, 0);
 
                haiku_new_focus_frame (x_display_list->focused_frame);