#9979: [ProcessController] kill dialog is not in the center of a screen
---------------------------------+----------------------------
Reporter: diver | Owner: nobody
Type: enhancement | Status: assigned
Priority: normal | Milestone: R1
Component: Kits/Interface Kit | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Platform: All |
---------------------------------+----------------------------
Changes (by pulkomandy):
* component: Applications/ProcessController => Kits/Interface Kit
Comment:
ProcessController can't really decide where the alert is shown, because
its size is computed only in BAlert::Go() which also shows it. So, calling
CenterOnScren results in the alert having its top-left corner on the
center of the screen.
BAlert::_Prepare detects that the alert has a set position and does not
change it. But there is no way to compute the correct position before
_Prepare is called.
There is also no way to specify which window is the parent. It just uses
the current thread and tests if that's a window (otherwise it does center
itself on screen instead).
So, it looks like some API improvement to BAlert could be needed here.
--
Ticket URL: <https://dev.haiku-os.org/ticket/9979#comment:3>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.