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

focus is not working properly when new windows are opened and focused after application has been launched #1587

Closed
arielschiavoni opened this issue Feb 19, 2014 · 1 comment

Comments

@arielschiavoni
Copy link

Hi,

I found a bug while I was playing around window focus property.
Basically any window that was opened after node-webkit app and focused on top of it can not be unfocused.

STR:

  1. Create a function that will open a new window with focus:true (specify some timeout to be able to open some windows before this function is executed) automatically when application is executed.
setTimeout(function() {
   gui.Window.open( "yourUrlHere", {
       position: "center",
       width: 1100,
       height: 552,
       resizable: false,
       frame: true,
       toolbar: false,
       focus: true
   });
}, 5000);
  1. Start application
  2. Open some windows ( file explorer for example Windows + E) before "gui.Window.open" is executed, so they are in focus before node-webkit application
  3. Wait until new window is opened

RESULT:
New window opens behind other windows

EXPECTATION:
New window opens above all other windows

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@nwjs-bot
Copy link

nwjs-bot commented Jun 1, 2016

This should be working with latest version now.

In 0.13 we changed to an optimized architecture so more features can be supported, see http://nwjs.io/blog/whats-new-in-0.13/ and it's good for keeping up with Chromium upstream -- we released with Node.js v6.0 and new Chromium versions within 1 day after upstream release.

The new version would fixed many issues reported here and we're scrubbing them. This issue is closed as we believe it should be fixed. Please leave a message if it isn't and we'll reopen it.

@nwjs-bot nwjs-bot closed this as completed Jun 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants