diff --git a/Greenshot/Forms/MainForm.Designer.cs b/Greenshot/Forms/MainForm.Designer.cs index 9a62d46da..e0b3bd5f4 100644 --- a/Greenshot/Forms/MainForm.Designer.cs +++ b/Greenshot/Forms/MainForm.Designer.cs @@ -244,7 +244,7 @@ namespace Greenshot { // this.notifyIcon.ContextMenuStrip = this.contextMenu; this.notifyIcon.Text = "Greenshot"; - this.notifyIcon.Click += new System.EventHandler(this.NotifyIconClick); + this.notifyIcon.MouseUp += new System.Windows.Forms.MouseEventHandler(this.NotifyIconClick); // // backgroundWorkerTimer // diff --git a/Greenshot/Forms/MainForm.cs b/Greenshot/Forms/MainForm.cs index 2d2978aa6..016e1edef 100644 --- a/Greenshot/Forms/MainForm.cs +++ b/Greenshot/Forms/MainForm.cs @@ -1083,10 +1083,12 @@ namespace Greenshot { LOG.Error(EnvironmentInfo.ExceptionToString(exceptionToLog)); new BugReportForm(exceptionText).ShowDialog(); } - - private void NotifyIconClick(object sender, EventArgs eventArgs) { - MethodInfo oMethodInfo = typeof(NotifyIcon).GetMethod("ShowContextMenu", BindingFlags.Instance | BindingFlags.NonPublic); - oMethodInfo.Invoke(notifyIcon, null); + + private void NotifyIconClick(object sender, MouseEventArgs e) { + if (e.Button == MouseButtons.Left) { + MethodInfo oMethodInfo = typeof(NotifyIcon).GetMethod("ShowContextMenu", BindingFlags.Instance | BindingFlags.NonPublic); + oMethodInfo.Invoke(notifyIcon, null); + } } ///