private void ButtonCallback(int index) { if (_config.Buttons.ButtonType == ButtonTypeEnum.DisplayGraphic) { QueueIconRefresh(_currentFocus); } var activeWindow = _Manager.GetActiveWindow(); _ActiveWindowsByDesktopIndex[_currentFocus] = activeWindow; _Manager.ChangeDesktop(index); RefreshButtons(); IntPtr newActiveWindow; if (_ActiveWindowsByDesktopIndex.TryGetValue(index, out newActiveWindow)) { _Manager.SetActiveWindow(newActiveWindow); } }
//[Verb(Aliases = "getactive")] public IntPtr GetActiveWindow() { return(_internalManager.GetActiveWindow()); }