fix sloppy focus potr warp on first window focus.
authorCarsten Haitzler <raster@rasterman.com>
Thu, 21 Jun 2012 09:54:35 +0000 (09:54 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Thu, 21 Jun 2012 09:54:35 +0000 (09:54 +0000)
SVN revision: 72584

src/bin/e_border.c

index 3a048f0..141e9ce 100644 (file)
@@ -2046,8 +2046,10 @@ e_border_focus_set_with_pointer(E_Border *bd)
 
    if (e_config->focus_policy == E_FOCUS_SLOPPY)
      {
-        if (e_border_under_pointer_get(bd->desk, bd))
-          e_border_pointer_warp_to_center(bd);
+        if (!e_border_under_pointer_get(bd->desk, bd))
+          {
+             e_border_pointer_warp_to_center(bd);
+          }
      }
    else
      {