abo-abo / ace-window

Quickly switch windows in Emacs
977 stars 87 forks source link

Can't select window that is on another frame #247

Open azegas opened 1 month ago

azegas commented 1 month ago

Hello,

My Emacs version - GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars)

I am running it on Windows, over WSL on NixOS distribution.

Here is my ace-window config:

(use-package ace-window
  :ensure t
  :defer t
  :init
  ;; Set keybindings that should be available immediately
  (global-set-key (kbd "C-x o") 'ace-window)
  (global-set-key (kbd "M-0") 'ace-swap-window)
  (global-set-key (kbd "C-x v") 'aw-split-window-horz)
  :config
  ;; Configure ace-window after it is loaded
  (setq aw-keys '(?q ?w ?e ?r ?y ?h ?j ?k ?l))

  ;; Define the dispatch list for ace-window
  (defvar aw-dispatch-alist
    '((?x aw-delete-window "Delete Window")
      (?m aw-swap-window "Swap Windows")
      (?M aw-move-window "Move Window")
      (?c aw-copy-window "Copy Window")
      (?f aw-switch-buffer-in-window "Select Buffer")
      (?n aw-flip-window)
      (?u aw-switch-buffer-other-window "Switch Buffer Other Window")
      (?c aw-split-window-fair "Split Fair Window")
      (?h aw-split-window-vert "Split Vert Window")
      (?v aw-split-window-horz "Split Horz Window")
      (?o delete-other-windows)
      ;; (?o delete-other-windows "Delete Other Windows")
      ;; (?o delete-other-windows " Ace - Maximize Window")
      (?? aw-show-dispatch-help))
    "List of actions for `aw-dispatch-default'.")
  )

I have seen a similar issue here, but not sure what wayland is and if that is the same problem that I am having - https://github.com/abo-abo/ace-window/issues/241


Ace window package itself works and has worked great for me in the past, thank you for that! I have set up 3 monitors for myself and now I want to be able to have Emacs open on multiple frames, on multiple monitors. I want to be able to jump between them with the help of ace-window commands.

When I create multiple frames and place them on multiple monitors, I click "C-x o", my ace-window command and indication letters appear on all frames on all monitors. But when I click on one of the letters that are in other frames - nothing happens, cursor stays in the current frame.

If I click to a letter that is in the same frame - I jump to that window.

Any idea why is that?

Thank you!