minimoog/qtwitdget

Tray Icon Issue on OS X

vvangelovski opened this issue · 3 comments

Due to what seems to be a bug in the QT framework for OS X even single clicks on the tray icon are registered as double clicks. This causes the application window to jump around minimizing/maximizing on each click on the icon. Even if this wasn't the case, the equivalents of tray icons on OS X are usually not expected to serve to minimize/maximize on double click or do anything on double click for that matter. They serve and behave more like menu nodes with fancier graphics.

Question is, should I just remove the tray icon double click handling code in the OS X branch or wrap it within an ifdef? Or maybe set a property on the main window when initializing that holds the current OS and add that into acount?

I don't why this line is in code

https://github.com/minimoog/qtwitdget/blob/master/mainwindow.cpp#L277

:)

Clicks and double clicks leads to same action.

Maybe we just need to remove double clicks in system tray on all platforms?

yeah, missed the missing break statement :)

Fixed.