aboutsummaryrefslogtreecommitdiff
path: root/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui.cpp')
-rw-r--r--ui.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui.cpp b/ui.cpp
index ec0b92050b..547c4b3387 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -375,6 +375,9 @@ void CMainFrame::OnIconize(wxIconizeEvent& event)
// to get rid of the deprecated warning. Just ignore it.
if (!event.Iconized())
fClosedToTray = false;
+#ifdef __WXGTK__
+ if (mapArgs.count("-minimizetotray")) {
+#endif
// The tray icon sometimes disappears on ubuntu karmic
// Hiding the taskbar button doesn't work cleanly on ubuntu lucid
// Reports of CPU peg on 64-bit linux
@@ -382,6 +385,9 @@ void CMainFrame::OnIconize(wxIconizeEvent& event)
fClosedToTray = true;
Show(!fClosedToTray);
ptaskbaricon->Show(fMinimizeToTray || fClosedToTray);
+#ifdef __WXGTK__
+ }
+#endif
}
void CMainFrame::OnMouseEvents(wxMouseEvent& event)