Enlightenment CVS committal
Author : tsauerbeck
Project : e17
Module : proto
Dir : e17/proto/esmart/src/trans
Modified Files:
esmart_trans.c
Log Message:
don't use _NET_NUMBER_OF_DESKTOPS to access the root window list provided by xlib
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/esmart/src/trans/esmart_trans.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- esmart_trans.c 27 Apr 2004 08:32:30 -0000 1.18
+++ esmart_trans.c 2 May 2004 09:18:28 -0000 1.19
@@ -79,7 +79,7 @@
static Evas_Object *
_esmart_trans_x11_pixmap_get(Evas *evas, Evas_Object *old, int x, int y, int w, int h)
{
- int root_list_num, ret, current_desk;
+ int root_list_num, num_desks = 0, ret, current_desk;
unsigned char *data;
Evas_Object *new = NULL;
Ecore_X_Pixmap p;
@@ -113,7 +113,7 @@
x_cardinal,
32, &data, &ret))
{
- root_list_num = *((int *) data);
+ num_desks = *((int *) data);
free(data);
}
@@ -124,7 +124,7 @@
free(root_list);
root_list = (Ecore_X_Window *) data;
- if (current_desk < root_list_num)
+ if (current_desk < num_desks)
root = root_list[current_desk];
}
-------------------------------------------------------
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