Skip to content

Commit

Permalink
Merge branch 'appveyor-support'
Browse files Browse the repository at this point in the history
  • Loading branch information
robinwassen committed Aug 15, 2018
2 parents 1b6af62 + 3fc3982 commit ebb7ddb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ forcefocus

> Node module that allows you to steal focus from other windows in Windows.
![npm](https://img.shields.io/npm/dw/forcefocus.svg)
![NpmVersion](https://img.shields.io/npm/v/npm.svg)
![NpmLicense](https://img.shields.io/npm/l/forcefocus.svg)
![AppVeyor branch](https://img.shields.io/appveyor/ci/robinwassen/forcefocus/master.svg?logo=appveyor)
[![npm](https://img.shields.io/npm/dw/forcefocus.svg)](https://npmjs.com/package/forcefocus)
[![NpmVersion](https://img.shields.io/npm/v/forcefocus.svg)](https://npmjs.com/package/forcefocus)
[![NpmLicense](https://img.shields.io/npm/l/forcefocus.svg)](https://npmjs.com/package/forcefocus)
[![AppVeyor branch](https://img.shields.io/appveyor/ci/robinwassen/forcefocus/master.svg?logo=appveyor)](https://ci.appveyor.com/project/robinwassen/forcefocus)


Microsoft changed the implementation of [SetFocus()](https://msdn.microsoft.com/en-us/library/windows/desktop/ms646312(v=vs.85).aspx) to only allow an app to grant focus to other windows if it currenly holds the focus. If an app that does not have the focus tries to take it, the taskbar will just flash rather than focusing the window. These changes was probably done to improve the user experience so users would not be distrubed by the focused application suddenly switching.
Expand Down
8 changes: 4 additions & 4 deletions docs/README.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ forcefocus

> Node module that allows you to steal focus from other windows in Windows.

![npm](https://img.shields.io/npm/dw/forcefocus.svg)
![NpmVersion](https://img.shields.io/npm/v/npm.svg)
![NpmLicense](https://img.shields.io/npm/l/forcefocus.svg)
![AppVeyor branch](https://img.shields.io/appveyor/ci/robinwassen/forcefocus/master.svg?logo=appveyor)
[![npm](https://img.shields.io/npm/dw/forcefocus.svg)](https://npmjs.com/package/forcefocus)
[![NpmVersion](https://img.shields.io/npm/v/forcefocus.svg)](https://npmjs.com/package/forcefocus)
[![NpmLicense](https://img.shields.io/npm/l/forcefocus.svg)](https://npmjs.com/package/forcefocus)
[![AppVeyor branch](https://img.shields.io/appveyor/ci/robinwassen/forcefocus/master.svg?logo=appveyor)](https://ci.appveyor.com/project/robinwassen/forcefocus)


Microsoft changed the implementation of [SetFocus()](https://msdn.microsoft.com/en-us/library/windows/desktop/ms646312(v=vs.85).aspx) to only allow an app to grant focus to other windows if it currenly holds the focus. If an app that does not have the focus tries to take it, the taskbar will just flash rather than focusing the window. These changes was probably done to improve the user experience so users would not be distrubed by the focused application suddenly switching.
Expand Down

0 comments on commit ebb7ddb

Please sign in to comment.