hamaxx / unity-2d-for-xmonad

Small changes to unity 2d that make using it with xmonad smoother
http://blog.hamsworld.net/2012/01/24/xmonad-on-ubuntu-11-10-oneiric-with-unity-2d/
GNU General Public License v3.0
16 stars 1 forks source link

Choose spread and places layout based on the current active window position #11

Closed hamaxx closed 12 years ago

hamaxx commented 12 years ago

Currently unity determines active screen based on the mouse position which in xmonad isn't always on the same screen as the active window. Additionally it assumes that unity is always on the primary screen which is ok at the moment, but more general solution would be better.

Proper solution is to check where is the currently active window and if we have either panel or launcher on that window.

hamaxx commented 12 years ago

Places and spread now determine active screen based on the active window.