Comment by bityard

4 years ago

There are/were Linux window managers or desktop environments where the file picker was not held if focus above the main window. Or at least they can be configured that way. I know because I've done it.

It turns out, that when that happens, the user can accidentally focus the main window while the file picker is up, and then the file picker gets hidden underneath it. As a fun bonus, the application now _probably_ appears to be frozen/crashed because it's waiting for input from the file picker that the user can no longer see.

It's just a bad idea, man. For most people anyway.

Then, if the user interacts with the main window, just close the file chooser and don't freeze the application.

  • Or set the right window properties including WM_TRANSIENT_FOR so that the window manager knows that the dialog should be displayed above the window.