Enlightenment CVS committal

Author  : tsauerbeck
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_x


Modified Files:
        ecore_x_window.c 


Log Message:
don't allow ecore_x_window_border_width_get/set calls on the default root window.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_window.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -3 -r1.25 -r1.26
--- ecore_x_window.c    26 Aug 2004 17:50:33 -0000      1.25
+++ ecore_x_window.c    26 Aug 2004 18:00:42 -0000      1.26
@@ -487,6 +487,10 @@
 int
 ecore_x_window_border_width_get(Ecore_X_Window win)
 {
+   /* doesn't make sense to call this on a root window */
+   if (!win)
+      return 0;
+
    return ecore_x_drawable_border_width_get(win);
 }
 
@@ -498,6 +502,10 @@
 void
 ecore_x_window_border_width_set(Ecore_X_Window win, int width)
 {
+   /* doesn't make sense to call this on a root window */
+   if (!win)
+      return;
+
    XSetWindowBorderWidth (_ecore_x_disp, win, width);
 }
 




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to