Enlightenment CVS committal

Author  : kwo
Project : misc
Module  : engage

Dir     : misc/engage/src


Modified Files:
        tray.c 


Log Message:
Fix systray on screens other than 0.
===================================================================
RCS file: /cvsroot/enlightenment/misc/engage/src/tray.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- tray.c      29 Dec 2004 12:41:25 -0000      1.13
+++ tray.c      29 Dec 2004 13:00:06 -0000      1.14
@@ -156,6 +156,7 @@
 void
 od_tray_init()
 {
+  char buf[32];
   Atom selection_atom;
   int scr;
 
@@ -163,7 +164,8 @@
   display = ecore_x_display_get();
   root = RootWindow (display, DefaultScreen(display));
 
-  selection_atom = ecore_x_atom_get("_NET_SYSTEM_TRAY_S0");
+  snprintf(buf, sizeof(buf), "_NET_SYSTEM_TRAY_S%d", DefaultScreen(display));
+  selection_atom = ecore_x_atom_get(buf);
   XSetSelectionOwner (display, selection_atom, od_window, CurrentTime);
 
   if (XGetSelectionOwner (display, selection_atom) == od_window) {




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to