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

Previous focused window is incorrectly restored to focus #1509

Closed
kimbirkelund opened this Issue Apr 12, 2018 · 3 comments

Comments

Projects
2 participants
@kimbirkelund

kimbirkelund commented Apr 12, 2018

Versions

ConEmu build: 180408 - 180411 x64
OS version: Windows 10.0.16299.371 (WinBuild.160101.0800) x64
Used shell version: PowerShell 5.1.16299.251

Problem description

When Quake mode is enabled minimizing the console brings the window that had focus, when the console was restored, back into focus, even when another window has since gained focus.

The problem arises when ConEmu is minimized - either using shortcut or because Auto-hide on focus lose is enabled.

Steps to reproduce

  1. Configure ConEmu for Quake mode setting a shortcut for restoring/minimizing
  2. Open two non-ConEmu programs (e.g. Chrome and Explorer), lets call then App1 and App2
  3. Bring App1 into focus
  4. Press the shortcut to restore ConEmu
  5. Click on App2 (either in taskbar or the apps window if visible)
  6. App2 has focus
  7. Press shortcut to minimize ConEmu
  8. After minimize animation App1 is brough back into focus

Actual results

App1 gains focus even though App2 was explicitly selected.

Expected results

App2 retains focus.

@Maximus5 Maximus5 added this to To Do in ConEmu via automation Apr 12, 2018

@Maximus5

This comment has been minimized.

Owner

Maximus5 commented Apr 12, 2018

@kimbirkelund

This comment has been minimized.

kimbirkelund commented Apr 13, 2018

While the source of the bugs might very well be related the issue isn't the same. I don't experience that a window doesn't actually regain focus, it's just that it's the wrong window.

If I, as I'm typing this comment, restore ConEmu and minimize it again (using the shortcut for both) I can continue typing my comment. As I understand the other issue that wouldn't be possible in that case.

My issue is that going from having ConEmu in focus and then focusing on different window from the one that was in focus when I opened ConEmu doesn't work. When ConEmu is minimized focus is returned to the window that had focus when ConEmu was restored, regardless of how far back in time that was.

@Maximus5 Maximus5 moved this from To Do to In progress in ConEmu Apr 13, 2018

Maximus5 added a commit that referenced this issue Apr 14, 2018

@Maximus5 Maximus5 moved this from In progress to Ready for Testing in ConEmu Apr 14, 2018

@kimbirkelund

This comment has been minimized.

kimbirkelund commented Apr 16, 2018

This issue appears to be fixed in release 180415.

@Maximus5 Maximus5 closed this Apr 16, 2018

ConEmu automation moved this from Ready for Testing to Done Apr 16, 2018

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