Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/bin


Modified Files:
        ecore_test.c 


Log Message:
Missed assigning an event for client machine change. Also added support for
_NET_WM_PID.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/bin/ecore_test.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- ecore_test.c        13 Oct 2003 16:28:30 -0000      1.7
+++ ecore_test.c        13 Oct 2003 17:36:09 -0000      1.8
@@ -469,6 +469,25 @@
 }
 
 int
+handler_x_window_prop_pid_change(void *data, int type, void *event)
+{
+   Ecore_X_Event_Window_Prop_Pid_Change *e;
+   
+   e = event;
+   if (e->pid)
+     {
+        printf("Pid change to \"%d\" ", e->pid);
+       if (e->pid == getpid())
+               printf("correct.\n");
+       else
+               printf("INCORRECT!\n");
+     }
+   else
+     printf("Pid deleted\n");
+   return 1;
+}
+
+int
 handler_x_window_prop_name_class_change(void *data, int type, void *event)
 {
    Ecore_X_Event_Window_Prop_Name_Class_Change *e;
@@ -524,6 +543,7 @@
         printf("Client machine: %s\n", tmp);
         free(tmp);
      }
+   printf("Pid: %d\n", ecore_x_window_prop_pid_get(win));
    ecore_x_window_prop_name_class_set(win, "ecore_test", "main");
    ecore_x_window_prop_protocol_set(win, ECORE_X_WM_PROTOCOL_DELETE_REQUEST, 1);
    ecore_x_window_show(win);
@@ -547,6 +567,8 @@
    ecore_event_handler_add(ECORE_X_EVENT_WINDOW_PROP_ICON_NAME_CHANGE, 
handler_x_window_prop_icon_name_change, NULL);
    ecore_event_handler_add(ECORE_X_EVENT_WINDOW_PROP_VISIBLE_ICON_NAME_CHANGE, 
handler_x_window_prop_visible_icon_name_change, NULL);
    ecore_event_handler_add(ECORE_X_EVENT_WINDOW_PROP_NAME_CLASS_CHANGE, 
handler_x_window_prop_name_class_change, NULL);
+   ecore_event_handler_add(ECORE_X_EVENT_WINDOW_PROP_CLIENT_MACHINE_CHANGE, 
handler_x_window_prop_client_machine_change, NULL);
+   ecore_event_handler_add(ECORE_X_EVENT_WINDOW_PROP_PID_CHANGE, 
handler_x_window_prop_pid_change, NULL);
 }
 #endif
 




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to