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

Already on GitHub? Sign in to your account

Switching focus to second screen requires that a window is present #19

Closed
mixu opened this Issue May 27, 2012 · 3 comments

Comments

Projects
None yet
2 participants
Owner

mixu commented May 27, 2012

I missed this case when refactoring the focus code: if the desktop is empty, then there is no window, so the screen does not get focused when hovered over. This means that you need to move a window to the second screen on a dual screen setup to switch focus.

If you have windows on both desktops, then focus switching works fine, but should fix this, though it's not too hard to live with.

ashnur commented Jun 5, 2012

This started to bother me in the past few days. Are there any suggestions on how I might be able to fix it?

Owner

mixu commented Jun 5, 2012

It's probably the enternotify logic around https://github.com/mixu/nwm/blob/master/src/nwm/nwm.c#L640

Owner

mixu commented Jul 12, 2012

Finally had some time took look at this, and this is now fixed! nwm will correctly switch monitor, even if the second monitor is empty. I'm closing it since I was the reporter, but feel free to reopen if you run into issues.

@mixu mixu closed this Jul 12, 2012

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