debug_server: Make crash prompt appear above all other windows.

With B_MODAL_WINDOW, others can be brought in front. But with
B_MODAL_WINDOW_LOOK plus B_FLOATING_ALL_WINDOW_FEEL, it will
retain its current appearance, but always stay on top of all other
windows.

Since debug_server does not have a Deskbar entry, this will prevent
such windows from getting "lost" and then having to minimize all others
in order to find them (or forgetting about them altogether by accident.)
This commit is contained in:
Augustin Cavalier 2023-02-28 20:24:30 -05:00
parent 8a5fc3866a
commit 4f3a8009e1

View File

@ -27,12 +27,15 @@
DebugWindow::DebugWindow(const char* appName)
:
BWindow(BRect(0, 0, 100, 50), "Crashed program", B_MODAL_WINDOW,
BWindow(BRect(0, 0, 100, 50), "Crashed program",
B_MODAL_WINDOW_LOOK, B_FLOATING_ALL_WINDOW_FEEL,
B_CLOSE_ON_ESCAPE | B_NOT_RESIZABLE | B_AUTO_UPDATE_SIZE_LIMITS),
fBitmap(IconSize(), B_RGBA32),
fSemaphore(create_sem(0, "DebugWindow")),
fAction(kActionKillTeam)
{
SetFeel(B_FLOATING_ALL_WINDOW_FEEL);
BString buffer(B_TRANSLATE(
"The application:\n\n %app\n\n"
"has encountered an error which prevents it from continuing. Haiku "