]> Dogcows Code - chaz/openbox/blobdiff - openbox/event.c
destroy the focus_backup
[chaz/openbox] / openbox / event.c
index cb2ed093bce4f7584770d85ce06b9207647200b1..b4bfd9baf73039b2f4e0bc0498d193acdd28d076 100644 (file)
@@ -248,6 +248,10 @@ void event_process(XEvent *e)
     case EnterNotify:
     case LeaveNotify:
        event_lasttime = e->xcrossing.time;
+        /* XXX this caused problems before... but i don't remember why. hah.
+           so back it is. if problems arise again, then try filtering on the
+           detail instead of the mode. */
+        if (e->xcrossing.mode != NotifyNormal) return;
        break;
     }
 
@@ -332,7 +336,8 @@ static void event_handle_client(Client *client, XEvent *e)
        /* focus state can affect the stacking layer */
        client_calc_layer(client);
 
-       focus_set_client(client);
+        if (focus_client != client)
+            focus_set_client(client);
        break;
     case FocusOut:
        client->focused = FALSE;
This page took 0.021885 seconds and 4 git commands to generate.