Commit af7d2b2127dadbdf828c60c75255bb1b4f591651
Always activate popup windows on show
The problem was that popups that were opened
from a system tray icon did not get activated
and clicking outside would not close
the popup as intended. Ensuring that all popups
get activated on show should solve this problem
in the general sense.
Task-number: QTBUG-7386
Reviewed-by: denis
| |   |
| 1156 | 1156 | data.window_state |= Qt::WindowMinimized; |
| 1157 | 1157 | if (IsZoomed(q->internalWinId())) |
| 1158 | 1158 | data.window_state |= Qt::WindowMaximized; |
| if (q->windowType() == Qt::Popup) |
| q->activateWindow(); |
| 1159 | 1161 | } |
| 1160 | 1162 | |
| 1161 | 1163 | winSetupGestures(); |
| |   |
| 325 | 325 | q->contextMenu()->move(gpos); |
| 326 | 326 | } |
| 327 | 327 | #endif |
| q->contextMenu()->activateWindow(); |
| //Must be activated for proper keyboardfocus and menu closing on windows: |
| 330 | 328 | } |
| 331 | 329 | emit q->activated(QSystemTrayIcon::Context); |
| 332 | 330 | break; |