On 03/26/15 02:58, Ian MacArthur wrote:
> By default, the fltk common dialogs use a hotspot mechanism..
Yes; see fl_message_hotspot() under the "common dialogs classes and functions"
section of the docs:
http://www.fltk.org/doc-1.3/group__group__comdlg.html#ga5cb8a823f404d44994862d198b3a82b1
On my system, AFAIK the window manager does no auto-window placement.
If I run the test/ask program:
> The first window opens exactly center screen,
regardless of where the mouse is.
> Clicking "Test text", the resulting input dialog
always opens with the "cancel" button under the mouse,
wherever the mouse is.
> On the first window if I click the 'X' to close the window,
the "Are you sure you want to quit" dialog opens, which has
hotspots disabled, and seems to open wherever I opened the
last "Test text" dialog. (If I run the program fresh and click
the 'X', this dialog opens at the extreme upper left of the
window manager, i.e. x/y=0,0 on the root window)
Some window managers try to diagonally stack windows that are open
one after the other. Mine does not; I can tell because if I run
the test/ask program 10 times in the background, all 10 windows
open up center screen. The ask program's first window is created
with no x+y position, just a w+h.