Changed refocusing method for rdp tabs

Solve bug reported by Joe Cefoli on gitter
This commit is contained in:
Camilo Alvarez
2019-02-06 11:27:40 -05:00
parent c836e29d2f
commit aa9b32a383

View File

@@ -1,4 +1,6 @@
using System;
using mRemoteNG.App;
using mRemoteNG.UI.Tabs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -11,13 +13,12 @@ namespace mRemoteNG.Connection.Protocol.RDP
public RdpClientWrap()
: base()
{
GotFocus += RdpClientWrap_GotFocus;
}
protected override void WndProc(ref System.Windows.Forms.Message m)
private void RdpClientWrap_GotFocus(object sender, EventArgs e)
{
if (m.Msg == 0x0021)
this.Parent.Parent.Focus();
base.WndProc(ref m);
}
((ConnectionTab)Parent.Parent).Focus();
}
}
}