Disable auto-lowering and raising on Haiku when a popup is active

* src/haikuterm.c (haiku_new_focus_frame):
(haiku_read_socket): Don't raise or lower if popup is activated.
This commit is contained in:
Po Lu 2022-02-15 07:21:18 +00:00
parent 6f566021ed
commit 5129e713b0

View 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);