Closed mixu closed 12 years ago
This started to bother me in the past few days. Are there any suggestions on how I might be able to fix it?
It's probably the enternotify logic around https://github.com/mixu/nwm/blob/master/src/nwm/nwm.c#L640
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.
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.