Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.4.0 RC, 5.9.6
-
None
-
Macintosh, I'm running 10.9.4.
Qt 5.4.0, we're using a recent stable branch build.
Description
When you call QWidget::raise() on a Macintosh, this code runs:
[m_nsWindow orderFront: m_nsWindow];
ProcessSerialNumber psn;
GetCurrentProcess(&psn);
SetFrontProcessWithOptions(&psn, kSetFrontProcessFrontWindowOnly);
(from QCocoaWindow::raise() in qcocoawindow.mm)
It is very annoying- when our application is not the active application, anytime our user's script changes window stacking order our application is yanked to the front.
Qt 4 had a function qt_mac_set_raise_process() in qwidget_mac.mm that set a boolean to make that behavior optional:
if (qt_mac_raise_process)
{ //we get to be the active process now ProcessSerialNumber psn; GetCurrentProcess(&psn); SetFrontProcessWithOptions(&psn, kSetFrontProcessFrontWindowOnly); }(from QWidgetPrivate::raise_sys() in qwidget_mac.mm).
I would like to get that back.
Attachments
Issue Links
- is duplicated by
-
QTBUG-44764 [OS X] When a window is shown, it should not make a hidden application unhide
- Closed
- replaces
-
QTBUG-44764 [OS X] When a window is shown, it should not make a hidden application unhide
- Closed