]> Dogcows Code - chaz/openbox/commitdiff
revert part of r6074. i don't think it needs to be removed anymore and then everythin...
authorDana Jansens <danakj@orodu.net>
Sun, 13 May 2007 03:03:48 +0000 (03:03 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 13 May 2007 03:03:48 +0000 (03:03 +0000)
openbox/action.c

index e340979177603e2b745c91f4c87241b87e7feb54..0f1a04d2dbcdf74c354cc38325917fdb570605d9 100644 (file)
@@ -48,8 +48,21 @@ inline void client_action_start(union ActionData *data)
 inline void client_action_end(union ActionData *data)
 {
     if (config_focus_follow)
-        if (data->any.context != OB_FRAME_CONTEXT_CLIENT && !data->any.button)
-            grab_pointer(FALSE, FALSE, OB_CURSOR_NONE);
+        if (data->any.context != OB_FRAME_CONTEXT_CLIENT) {
+            if (!data->any.button) {
+                grab_pointer(FALSE, FALSE, OB_CURSOR_NONE);
+            } else {
+                ObClient *c;
+
+                /* usually this is sorta redundant, but with a press action
+                   that moves windows our from under the cursor, the enter
+                   event will come as a GrabNotify which is ignored, so this
+                   makes a fake enter event
+                */
+                if ((c = client_under_pointer()))
+                    event_enter_client(c);
+            }
+        }
 }
 
 typedef struct
This page took 0.024203 seconds and 4 git commands to generate.