Enlightenment CVS committal

Author  : handyande
Project : misc
Module  : engage

Dir     : misc/engage/src


Modified Files:
        wm.c 


Log Message:
Listen to X Events - patch from Gen Zhang, cheers genneth - nice to have you back on 
board ;)
===================================================================
RCS file: /cvsroot/enlightenment/misc/engage/src/wm.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- wm.c        24 Apr 2004 20:12:38 -0000      1.10
+++ wm.c        2 May 2004 21:58:20 -0000       1.11
@@ -202,10 +202,21 @@
 
 }
 
+int window_prop_change_cb(void *data, int type, void *event)
+{
+  Ecore_X_Event_Window_Property * ev = event;
+  if(ev->atom != ecore_x_atom_get("_NET_CLIENT_LIST")) return 1;
+  od_sync_clients(NULL);
+  return 1; // carry on
+}
+
 void
 od_dock_icons_update_begin()
 {
-  ecore_timer_add(1.0, od_sync_clients, NULL);
+  od_sync_clients(NULL);
+  ecore_x_event_mask_set(DefaultRootWindow(ecore_x_display_get()), 
+                         PropertyChangeMask);
+  ecore_event_handler_add(ECORE_X_EVENT_WINDOW_PROPERTY, window_prop_change_cb, NULL);
 }
 
 Evas_Bool




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to