Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_border.c 


Log Message:
Remove some commented out code that is deprecated in favor of e_focus.c
code.
Indent.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.300
retrieving revision 1.301
diff -u -3 -r1.300 -r1.301
--- e_border.c  1 Jul 2005 08:20:03 -0000       1.300
+++ e_border.c  1 Jul 2005 08:26:06 -0000       1.301
@@ -3064,26 +3064,10 @@
               details[ev->detail]);
      }
 #endif
-/*   
-   if ((ev->mode == ECORE_X_EVENT_MODE_GRAB) &&
-       (ev->detail == ECORE_X_EVENT_DETAIL_NON_LINEAR_VIRTUAL) &&
-       (ev->win == bd->event_win) &&
-       (ev->event_win == bd->win))
-     return 1;
-   else if ((ev->mode == ECORE_X_EVENT_MODE_UNGRAB) &&
-       (ev->detail == ECORE_X_EVENT_DETAIL_NON_LINEAR_VIRTUAL) &&
-       (ev->win == bd->event_win) &&
-       (ev->event_win == bd->win))
-     return 1;
- */
    if (grabbed) return 1;
    if (ev->event_win == bd->win)
      {
-       /* FIXME: this would normally put focus on the client on pointer */
-       /* focus - but click to focus it wouldnt */
        e_focus_event_mouse_in(bd);
-//     e_border_focus_set(bd, 1, 1);
-//      e_border_raise(bd);
      }
    if (ev->win != bd->event_win) return 1;
    bd->mouse.current.mx = ev->root.x;
@@ -3132,39 +3116,31 @@
               details[ev->detail]);
      }
 #endif
-   /* FIXME: this would normally take focus away in pointer focus mode */
-//   if (ev->mode == ECORE_X_EVENT_MODE_UNGRAB) return 1;
    if (grabbed) return 1;
-       if ((ev->mode == ECORE_X_EVENT_MODE_UNGRAB) &&
-           (ev->detail == ECORE_X_EVENT_DETAIL_NON_LINEAR))
+   if ((ev->mode == ECORE_X_EVENT_MODE_UNGRAB) &&
+       (ev->detail == ECORE_X_EVENT_DETAIL_NON_LINEAR))
+     {
+       if (bd->cur_mouse_action)
          {
-            if (bd->cur_mouse_action)
-              {
-                 if (bd->cur_mouse_action->func.end_mouse)
-                   bd->cur_mouse_action->func.end_mouse(E_OBJECT(bd), "", ev);
-                 else if (bd->cur_mouse_action->func.end)
-                   bd->cur_mouse_action->func.end(E_OBJECT(bd), "");
-                 e_object_unref(E_OBJECT(bd->cur_mouse_action));
-                 bd->cur_mouse_action = NULL;
-              }
+            if (bd->cur_mouse_action->func.end_mouse)
+              bd->cur_mouse_action->func.end_mouse(E_OBJECT(bd), "", ev);
+            else if (bd->cur_mouse_action->func.end)
+              bd->cur_mouse_action->func.end(E_OBJECT(bd), "");
+            e_object_unref(E_OBJECT(bd->cur_mouse_action));
+            bd->cur_mouse_action = NULL;
          }
+     }
    if (ev->event_win == bd->win)
      {
        if ((ev->mode == ECORE_X_EVENT_MODE_UNGRAB) &&
            (ev->detail == ECORE_X_EVENT_DETAIL_INFERIOR))
          return 1;
-/* this is the out for pointer focus
-       if ((ev->mode == ECORE_X_EVENT_MODE_NORMAL) &&
-           (ev->detail == ECORE_X_EVENT_DETAIL_NON_LINEAR_VIRTUAL))
-         return 1;
- */
        if (ev->mode == ECORE_X_EVENT_MODE_GRAB)
          return 1;
        if ((ev->mode == ECORE_X_EVENT_MODE_NORMAL) &&
            (ev->detail == ECORE_X_EVENT_DETAIL_INFERIOR))
          return 1;
        e_focus_event_mouse_out(bd);
-       //e_border_focus_set(bd, 0, 1);
      }
    if (ev->win != bd->event_win) return 1;
    bd->mouse.current.mx = ev->root.x;




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to