abo-abo / ace-window

Quickly switch windows in Emacs
984 stars 87 forks source link

selects the wrong window with EXWM and multiple monitors #209

Open gdindi opened 3 years ago

gdindi commented 3 years ago

Hi, Thanks for this great package. It works very well for me except when I want to jump to a window which is in another monitor when using EXWM.

In EXWM, different monitors host different workspaces and each workspace correspond to a different frame.

In this case, when I am on monitor 1 and I have 2 windows in the frame of monitor 2, ace-window jumps to the wrong window, that is, if I select window 1, it jumps to window 2 and viceversa.

This is my config:

(use-package ace-window
  :ensure t
  :init (setq aw-keys '(?a ?u ?i ?e ?t ?s ?r ?n ?m)
              aw-char-position 'top-left
              aw-ignore-current nil
              aw-leading-char-style 'char
              aw-scope 'visible)
  :bind (("M-o" . ace-window)))

I have tried to change the scope between visible and global, but the result is the same. I don't think this is a EXWM bug, because the switch-window package works OK in this case (but I prefer ace-window because the contents of the buffers are visible during the window selection).

Has anybody found such issues?

Thanks