Skip to content

Commit 7d9200a

Browse files
committed
potentian fix for mac initial startup focus loss
Signed-off-by: Aleksandr Motsjonov <[email protected]>
1 parent c1aebfc commit 7d9200a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/iv/ivmain.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ main(int argc, char* argv[])
138138
if (ap["rawcolor"].get<int>())
139139
mainWin->rawcolor(true);
140140

141+
QApplication::processEvents(); // Process any pending events
142+
141143
// Make sure we are the top window with the focus.
142144
mainWin->raise();
143145
mainWin->activateWindow();

0 commit comments

Comments
 (0)