Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_border.h e_focus.c e_remote_main.c 


Log Message:
Sloppy focus.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_border.h,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -3 -r1.58 -r1.59
--- e_border.h  20 May 2005 09:27:05 -0000      1.58
+++ e_border.h  20 May 2005 18:46:32 -0000      1.59
@@ -28,8 +28,9 @@
 
 typedef enum _E_Focus_Policy
 {
-   E_FOCUS_CLICK = 0,
-   E_FOCUS_MOUSE = 1
+   E_FOCUS_CLICK,
+   E_FOCUS_MOUSE,
+   E_FOCUS_SLOPPY
 } E_Focus_Policy;
 
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_focus.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- e_focus.c   20 May 2005 10:14:51 -0000      1.10
+++ e_focus.c   20 May 2005 18:46:32 -0000      1.11
@@ -30,7 +30,8 @@
 void
 e_focus_event_mouse_in(E_Border* bd)
 {
-   if (e_config->focus_policy == E_FOCUS_MOUSE)
+   if ((e_config->focus_policy == E_FOCUS_MOUSE)
+       || (e_config->focus_policy == E_FOCUS_SLOPPY))
      e_border_focus_set(bd, 1, 1);
    
    bd->raise_timer = NULL;
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_remote_main.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -3 -r1.29 -r1.30
--- e_remote_main.c     20 May 2005 09:27:06 -0000      1.29
+++ e_remote_main.c     20 May 2005 18:46:32 -0000      1.30
@@ -250,9 +250,10 @@
    value = 0;
    if (!strcmp(params[0], "MOUSE")) value = E_FOCUS_MOUSE;
    else if (!strcmp(params[0], "CLICK")) value = E_FOCUS_CLICK;
+   else if (!strcmp(params[0], "SLOPPY")) value = E_FOCUS_SLOPPY;
    else
      {
-       printf("focus must be MOUSE or CLICK\n");
+       printf("focus must be MOUSE, CLICK or SLOPPY\n");
        exit(-1);
      }
    data = e_ipc_codec_int_enc(value, &bytes);




-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to