Commit af7d2b2127dadbdf828c60c75255bb1b4f591651

  • avatar
  • Jens Bache-Wiig <jbache @trol…ech.com>
  • Thu Feb 04 14:24:30 CET 2010
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
  
11561156 data.window_state |= Qt::WindowMinimized;
11571157 if (IsZoomed(q->internalWinId()))
11581158 data.window_state |= Qt::WindowMaximized;
1159 if (q->windowType() == Qt::Popup)
1160 q->activateWindow();
11591161 }
11601162
11611163 winSetupGestures();
  
325325 q->contextMenu()->move(gpos);
326326 }
327327#endif
328 q->contextMenu()->activateWindow();
329 //Must be activated for proper keyboardfocus and menu closing on windows:
330328 }
331329 emit q->activated(QSystemTrayIcon::Context);
332330 break;