Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AlwaysOnTop windows always show up at the top of the list #51

Open
apobekiaris opened this issue May 25, 2017 · 4 comments
Open

AlwaysOnTop windows always show up at the top of the list #51

apobekiaris opened this issue May 25, 2017 · 4 comments

Comments

@apobekiaris
Copy link
Contributor

It will be really cool if we could use gotowindow instead of original Windows alt+tab implementation because is much faster however the enumrated windows order does not much the original windows list order. This could work for example as:

  1. Hit the keyb shortcut to show the search frame where the first item on the list is selected automatically and with enter focus to that previous window without typing anything
  2. Alternatively hit the same shortcut (which displays the already displayed search box) or use the up/down arrows to navigate to previous windows

I hope I make some sense :)

@christianrondeau
Copy link
Owner

Mmmh, it should be in the same order, I use win+/ and then I simply press enter (it automatically highlights the second window) to do what you are saying. Maybe it's not dying this when running as admin?

@apobekiaris
Copy link
Contributor Author

Please look at this screen cast
https://www.screencast.com/t/Zr37Jw2t9XS
focus on the 2nd time GoToWindow is shown, I would expect

  1. AlwaysOnTop windows (Snagit, Trillian, Teamviewer) to be on the bottom of the list
  2. First item to be the ps (now after AlwaysOnTop windows is again the active window which is Google)

@christianrondeau
Copy link
Owner

Mmmmh, that's interesting, I understand what you mean now. Thanks for the screencast, that was a very good idea :)

By the way, is it really badly centered, or is it because Snagit does not take the whole screen?

I quickly checked with Conemu (which can be made AlwaysOnTop optionally), and by some black magic, in the native Alt + Tab actually behaves fine (it's not always showing up first)... I'm using https://msdn.microsoft.com/en-us/library/windows/desktop/ms633497(v=vs.85).aspx which actually only follows Z order, rather than last-used.

My best idea is to add a setting that would move all topmost windows at the top of the list, even though I'd prefer getting the same list as Alt + Tab if that was possible.

So:

  1. Add a flag "IsAlwaysOnTop" to https://github.com/christianrondeau/GoToWindow/blob/master/GoToWindow.Api/WindowsListFactory.cs#L82
  2. Remove all topmost windows and at them back at the end of the list https://github.com/christianrondeau/GoToWindow/blob/master/GoToWindow.Api/WindowsListFactory.cs#L66

Feel free to suggest a PR if you have some time :)

@christianrondeau christianrondeau changed the title replace WIN+ALT+TAB AlwaysOnTop windows always show up at the top of the list May 29, 2017
@apobekiaris
Copy link
Contributor Author

yeah Snagit not centered

Ok if I start first coding I ll let you know please do the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants