Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_border.c 


Log Message:


focus - deny entirely  in any visual and technical way, if asked.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.626
retrieving revision 1.627
diff -u -3 -r1.626 -r1.627
--- e_border.c  5 Mar 2008 02:54:30 -0000       1.626
+++ e_border.c  6 Mar 2008 10:17:39 -0000       1.627
@@ -1353,6 +1353,13 @@
 EAPI void
 e_border_focus_set_with_pointer(E_Border *bd)
 {
+   /* note: this is here as it seems there are enough apps that do not even
+    * expect us to emulate a look of focus but not actually set x input
+    * focus as we do - so simply abort any focuse set on such windows */
+   /* be strict about accepting focus hint */
+//   printf(" 2accept:%i take:%i\n", bd->client.icccm.accepts_focus, 
bd->client.icccm.take_focus);
+   if (!bd->client.icccm.accepts_focus) return;
+   
    /* Try to grab the pointer to make sure it's not "in use" */
    if (!ecore_x_pointer_grab(bd->zone->container->win))
      return;
@@ -1381,7 +1388,14 @@
 {
    E_OBJECT_CHECK(bd);
    E_OBJECT_TYPE_CHECK(bd, E_BORDER_TYPE);
-   //printf("e_border_focus_set(%p, %i %i);\n", bd, focus, set);
+   /* note: this is here as it seems there are enough apps that do not even
+    * expect us to emulate a look of focus but not actually set x input
+    * focus as we do - so simply abort any focuse set on such windows */
+   /* be strict about accepting focus hint */
+//   printf("e_border_focus_set(%p, %s, %i %i);\n", bd, bd->client.icccm.name, 
focus, set);
+//   printf(" accept:%i take:%i\n", bd->client.icccm.accepts_focus, 
bd->client.icccm.take_focus);
+   if (!bd->client.icccm.accepts_focus) return;
+   
    if ((bd->modal) && (bd->modal != bd))
      {
        e_border_focus_set(bd->modal, focus, set);



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to