Enlightenment CVS committal

Author  : handyande
Project : misc
Module  : engage

Dir     : misc/engage/src/module


Modified Files:
        e_mod_main.h tray.c 


Log Message:
small tray proto updates, still no further to getting KDE apps to work
===================================================================
RCS file: /cvsroot/enlightenment/misc/engage/src/module/e_mod_main.h,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -3 -r1.28 -r1.29
--- e_mod_main.h        13 Dec 2005 18:29:52 -0000      1.28
+++ e_mod_main.h        18 Dec 2005 17:57:41 -0000      1.29
@@ -49,6 +49,7 @@
    int          icons;
    Evas_List   *wins;
    Ecore_X_Window win;
+   Ecore_X_Time select_time;
 
    Ecore_Event_Handler *msg_handler;
    Ecore_Event_Handler *dst_handler;
===================================================================
RCS file: /cvsroot/enlightenment/misc/engage/src/module/tray.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- tray.c      10 Dec 2005 18:44:50 -0000      1.17
+++ tray.c      18 Dec 2005 17:57:41 -0000      1.18
@@ -71,17 +71,26 @@
    char buf[32];
    Atom selection_atom;
    Evas_Coord x, y, w, h;
+   Ecore_X_Time time;
 
    win = 0;
    if (active)
-     win = eb->con->bg_win;
+     {
+       win = eb->con->bg_win;
+       time = ecore_x_current_time_get();
+       eb->tray->select_time = time;
+     }
+   else
+     {
+       time = eb->tray->select_time;
+     }
 
    display = ecore_x_display_get();
    root = RootWindow (display, DefaultScreen(display));
 
    snprintf(buf, sizeof(buf), "_NET_SYSTEM_TRAY_S%d", DefaultScreen(display));
    selection_atom = ecore_x_atom_get(buf);
-   XSetSelectionOwner (display, selection_atom, win, CurrentTime);
+   XSetSelectionOwner (display, selection_atom, win, time);
 
    if (active &&
        XGetSelectionOwner (display, selection_atom) == eb->con->bg_win)
@@ -145,6 +154,7 @@
   /* we want to insert at the end, so as not to move all icons on each add */
   eb->tray->wins = evas_list_append(eb->tray->wins, (void *)win);
   eb->tray->icons++;
+
   ecore_x_window_resize(win, 24, 24);
 
   ecore_x_window_reparent(win, eb->tray->win, 0, 0);
@@ -193,7 +203,7 @@
       /* Should proto be set according to clients _XEMBED_INFO? */
       ecore_x_client_message32_send(ev->data.l[2], ecore_x_atom_get("_XEMBED"),
                                   ECORE_X_EVENT_MASK_NONE, CurrentTime,
-                                  XEMBED_EMBEDDED_NOTIFY, 0, eb->con->bg_win, 
/*proto*/1);                              
+                                  XEMBED_EMBEDDED_NOTIFY, 0, eb->con->bg_win, 
/*proto*/1);
 
     } else if (ev->message_type == 
ecore_x_atom_get("_NET_SYSTEM_TRAY_MESSAGE_DATA")) {
       printf("got message\n");




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to