Open medranocalvo opened 6 years ago
Duh. After a second check it seems set-mouse-position
acts exactly like a raw X request.
select-frame-set-input-focus
is actually different has it calls x-focus-frame
which alters the input focus.
Duh. After a second check it seems set-mouse-position acts exactly like a raw X request.
Would it make sense to revert to set-mouse-position
then?
select-frame-set-input-focus is actually different has it calls x-focus-frame which alters the input focus.
But should alter it to the newly selected frame... I wonder wether this is related to me using XQuartz and focus-follows-mouse. Have you tried whether it works on your environment?
Duh. After a second check it seems set-mouse-position acts exactly like a raw X request.
Would it make sense to revert to set-mouse-position then?
Let's stick with the current solution. Emacs's builtin one might get changed over time.
select-frame-set-input-focus is actually different has it calls x-focus-frame which alters the input focus.
But should alter it to the newly selected frame... I wonder wether this is related to me using XQuartz and focus-follows-mouse. Have you tried whether it works on your environment?
We seldom set input focus to a frame with a window displaying an exwm-mode
buffer selected. If that should happen, we would be working on a read-only buffer (and see the annoying "Buffer is read-only" message on every typing). Perhaps there is a race condition here. I can confirm select-frame-by-name
seems working for me regardless of whether mouse-autoselect-window
or focus-follows-mouse
is enabled.
Hmm... I'll investigate. It might have to do with XQuartz. It will take some time.
Switching to another frame using
select-frame-by-name
does not work when focus-follows-mouse is enabled (mouse-autoselect-window
andfocus-follows-mouse
).I believe this has something to do with #456:
select-frame-by-name
invokesselect-frame-set-input-focus
(code below), which usesset-mouse-position
. In that issue, you mentioned thatThe implementation was problematic.
referring toset-mouse-position
. What do you meant by that?