[openbox] followMouse/underMouse focus

Jim Rees jim at rees.org
Wed Mar 21 16:32:50 EDT 2012


I've had this annoying problem for some time.  I've got the following
settings:

    <focusNew>no</focusNew>
    <followMouse>yes</followMouse>
    <underMouse>yes</underMouse>

Now I do this:

1. Click on desktop just above a window to bring up a menu. All windows lose
focus, as the menu now has focus.

2. Move mouse down to a menu item that covers part of the window, and select
it.

3. Menu goes away, mouse is now over the window.

4. The window should have focus, but it does not.

The following patch fixes it, but I'm not sure what unintended side effects
it might have.

--- event.c-	2011-11-16 22:37:43.000000000 -0500
+++ event.c	2012-03-21 16:15:35.487026484 -0400
@@ -2159,6 +2159,8 @@
        movement will be ignored until we create some further network traffic.
        Instead ignore up to NextRequest-1, then when we increment the serial,
        we will be *past* the range of ignored serials */
+    if (config_focus_under_mouse)
+        return;
     event_ignore_enter_range(start, NextRequest(obt_display)-1);
 }
 


More information about the openbox mailing list