[openbox] Focus-under-mouse doesn't work (mostly)

Grant Edwards grant.b.edwards at gmail.com
Thu Sep 29 17:13:17 EDT 2016


I have followMouse and underMouse both enabled

  <focus>
    <focusNew>no</focusNew>
    <!-- always try to focus new windows when they appear. other rules do apply -->
    <followMouse>yes</followMouse>
    <!-- move focus to a window when you move the mouse into it -->
    <focusLast>no</focusLast>
    <!-- focus the last used window when changing desktops, instead of the one
       under the mouse pointer. when followMouse is enabled -->
    <underMouse>yes</underMouse>
    <!-- move focus under the mouse, even when the mouse is not moving -->
    <focusDelay>0</focusDelay>
    <!-- when followMouse is enabled, the mouse must be inside the window for
       this many milliseconds (1000 = 1 sec) before moving focus to it -->
    <raiseOnFocus>no</raiseOnFocus>
    <!-- when followMouse is enabled, and a window is given focus by moving the
       mouse into it, also raise the window -->
  </focus>

But underMouse doesn't seem to work most of the time.  Here's one
scenario that usually (but not always) fails:

 1) Create a xterm window.

 2) Create a second one and place it on top of the first one.

 3) Place the mouse pointer in the center of the top one, and hit
    Ctrl-D.

 4) The top xterm window goes away, and the mouse pointer is now in the
    middle of the first one, but it doesn't have focus.

 5) I have to click or move the cursor out and back in for it to get
    focus.

_Sometimes_ it does work as expected, but I can't find any pattern to
when it works and when it doesn't.

The same thing often happens for other sorts of windows also, but
xterms are the simplest to demonstrate.

-- 
Grant Edwards               grant.b.edwards        Yow! My EARS are GONE!!
                                  at               
                              gmail.com            



More information about the openbox mailing list