예제 #1
0
        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);
            }
        }
예제 #2
0
 //[Verb(Aliases = "getactive")]
 public IntPtr GetActiveWindow()
 {
     return(_internalManager.GetActiveWindow());
 }