mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Improvement in protocol to tab focus
Tabs are focused now when mouse is clicked inside of the connetiontab, before clicking inside ssh window, for example, will not highlight the tab.
This commit is contained in:
@@ -438,6 +438,13 @@ namespace mRemoteNG.UI.Forms
|
||||
_inMouseActivate = true;
|
||||
break;
|
||||
case NativeMethods.WM_ACTIVATEAPP:
|
||||
var candidateTabToFocus = FromChildHandle(NativeMethods.WindowFromPoint(MousePosition))
|
||||
?? GetChildAtPoint(MousePosition);
|
||||
|
||||
if(candidateTabToFocus is InterfaceControl)
|
||||
{
|
||||
candidateTabToFocus.Parent.Focus();
|
||||
}
|
||||
_inMouseActivate = false;
|
||||
break;
|
||||
case NativeMethods.WM_ACTIVATE:
|
||||
|
||||
Reference in New Issue
Block a user