You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be a conflict/problem with EXWM and the native
mouse/focus handling in emacs, especially related to popup/floating
windows. The settings mouse-autoselect-window and focus-follows-mouse is used by emacs to control mouse/focus
handling in emacs. But setting these to true seems to give unexpected
results in EXWM with some graphical (X11) applications using popups/floating
windows.
A concrete example is FreeCAD and the popup dialogs related to the
VarSet dialog, and therein editing the "Value" field which brings up
yet another popup. The mouse pointer and focus seems to end up in unexpected
places in this case.
Looking at the function select-frame-set-input-focus it
seems that setting focus-follows-mouse to true makes emacs
try to warp the mouse position to character positions within the
frame. This surely makes no sense in graphical X11 applications.
Trying to unset these variables for floating windows only, in the exwm-float-setup-hook does not work, because the hook seems
to be called too late. Adding an additonal call at the start of exwm-floating--set-floating seems to work, though:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There seems to be a conflict/problem with EXWM and the native
mouse/focus handling in emacs, especially related to popup/floating
windows. The settings
mouse-autoselect-windowandfocus-follows-mouseis used by emacs to control mouse/focushandling in emacs. But setting these to true seems to give unexpected
results in EXWM with some graphical (X11) applications using popups/floating
windows.
A concrete example is FreeCAD and the popup dialogs related to the
VarSet dialog, and therein editing the "Value" field which brings up
yet another popup. The mouse pointer and focus seems to end up in unexpected
places in this case.
Looking at the function
select-frame-set-input-focusitseems that setting
focus-follows-mouseto true makes emacstry to warp the mouse position to character positions within the
frame. This surely makes no sense in graphical X11 applications.
See also notes in: https://sqrtminusone.xyz/posts/2022-01-03-exwm/
Trying to unset these variables for floating windows only, in the
exwm-float-setup-hookdoes not work, because the hook seemsto be called too late. Adding an additonal call at the start of
exwm-floating--set-floatingseems to work, though:main...vv3:exwm:floating-focus-fix
Beta Was this translation helpful? Give feedback.
All reactions