From 4f3a8009e1cfd61aa7ccdf9d7eeeeff606d730ea Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Tue, 28 Feb 2023 20:24:30 -0500 Subject: [PATCH] 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.) --- src/servers/debug/DebugWindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/servers/debug/DebugWindow.cpp b/src/servers/debug/DebugWindow.cpp index 5c66a40a94..b684278250 100644 --- a/src/servers/debug/DebugWindow.cpp +++ b/src/servers/debug/DebugWindow.cpp @@ -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 "