Skip to content

Commit 6cb8714

Browse files
authored
fix(iv): Bug fix for iv window loosing focus on mac on startup (#4773)
Master version of the iv today when opening on mac sometimes opens without a focus, which causes top menu bar not to be populated (just `iv` on the left). Workaround is to switch back and forth once to and from another app for menu bar too get populated. It is unclear to me how reliably replicate the bug so that I have a solid prove, that this fix works. But since building with this line it never happened to me yet. Maybe more knowledgeable in Qt can verify if it makes sense. Signed-off-by: Aleksandr Motsjonov <soswow@gmail.com>
1 parent f508e6e commit 6cb8714

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)