Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

other-window in terminal mode #225

Open
basaran opened this issue Jul 7, 2022 · 1 comment
Open

other-window in terminal mode #225

basaran opened this issue Jul 7, 2022 · 1 comment

Comments

@basaran
Copy link

basaran commented Jul 7, 2022

Hello,

I ran into an issue where I have emacs running in server mode and I launch emacsclients in terminal mode.

When I try to ace-window from Terminal to GUI emacs, it works just fine. But when I try to switch from GUI emacs to terminal emacs, it doesn't work although the command goes through.

I made a video of the situation, and I also found out about x-send-client-message but I'm not sure where to add this to ace-window.

(defun raiseme ()
  (x-send-client-message
   nil                ; DISPLAY - nil is selected frame
   0                  ; DEST - 0 is root window of display
   nil                ; FROM - nil is selected frame
   "_NET_ACTIVE_WINDOW"    ; MESSAGE-TYPE - name of an Atom as a string
   32                 ; FORMAT  - size of the values in bits
   '(1 "_NET_WM_USER_TIME" 0) ; VALUES
   )
  )
ace-window.webm
@abo-abo
Copy link
Owner

abo-abo commented Sep 11, 2022

Hi. I've tried to debug your example, and found nothing that works in a good way. Neither select-frame-set-input-focus, nor select-frame, nor x-focus-frame. Actually the built-in other-frame command also doesn't work. I think you should raise an Emacs bug about this. It should be fixed in the core.

The only thing I can think of to make it work is stuff like wmctrl, but I don't want to include that dependency in ace-window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants