Enlightenment CVS committal

Author  : xcomputerman
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_border.c e_hints.c 


Log Message:
Remove redundant inits, ICCCM focus send should only be done if wm property is 
set

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -3 -r1.37 -r1.38
--- e_border.c  30 Dec 2004 05:37:53 -0000      1.37
+++ e_border.c  30 Dec 2004 09:11:29 -0000      1.38
@@ -385,8 +385,7 @@
             if (bd->client.icccm.take_focus)
               {
                  printf("take focus!\n");
-                 /*
-                 ecore_x_icccm_take_focus_send(bd->client.win, 
ECORE_X_CURRENT_TIME);*/
+                 ecore_x_icccm_take_focus_send(bd->client.win, 
ECORE_X_CURRENT_TIME);
                  e_hints_active_window_set(bd->client.win);
                  ecore_x_window_focus(bd->client.win);
               }
@@ -394,12 +393,14 @@
               {
                  printf("set focus\n");
                  ecore_x_window_focus(bd->client.win);
+                 e_hints_active_window_set(bd->client.win);
               }
          }
        else
          {
             printf("remove focus\n");
             ecore_x_window_focus(bd->container->manager->win);
+            e_hints_active_window_set(0);
          }
      }
    if ((bd->focused) && (focused != bd))
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_hints.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- e_hints.c   30 Dec 2004 08:06:46 -0000      1.1
+++ e_hints.c   30 Dec 2004 09:11:29 -0000      1.2
@@ -16,9 +16,6 @@
 
    win = ecore_x_window_new(0, -200, -200, 5, 5);
 
-   ecore_x_icccm_init();
-   ecore_x_netwm_init();
-   
    if (roots)
      {
         if (num > 0)
@@ -138,7 +135,6 @@
 void
 e_hints_active_window_set(Ecore_X_Window win)
 {
-   ecore_x_icccm_take_focus_send(win, ECORE_X_CURRENT_TIME);
    ecore_x_netwm_client_active_set(root, win);
 }
 




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to