Make window ordering rely on frame position

I'm not quite sure what exactly the intention was of doing this off the id comparisons of the frames (they don't seem to be very consistent?).
I think that going off frame positions is much more intuitive. This only considers horizontal frame position, but it might also be worth considering their vertical position.
old-master
Connor Nelson 8 years ago committed by GitHub
parent 208ea2a4e8
commit c35618ed00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      ace-window.el

@ -537,8 +537,9 @@ Windows are numbered top down, left to right."
(f2 (window-frame wnd2))
(e1 (window-edges wnd1))
(e2 (window-edges wnd2)))
(cond ((string< (frame-parameter f1 'window-id)
(frame-parameter f2 'window-id))
(cond ((< (car (frame-position f1)) (car (frame-position f2)))
(not aw-reverse-frame-list))
((> (car (frame-position f1)) (car (frame-position f2)))
aw-reverse-frame-list)
((< (car e1) (car e2))
t)

Loading…
Cancel
Save