Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        iclass.c 


Log Message:
Skip transparency stuff for offscreen windows.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/iclass.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -3 -r1.26 -r1.27
--- iclass.c    7 Mar 2004 07:34:00 -0000       1.26
+++ iclass.c    7 Mar 2004 22:48:01 -0000       1.27
@@ -428,17 +428,21 @@
        Pixmap              bg;
        int                 xx, yy;
 
-       /* Create the background base image */
-       bg = root.win;
-       if ((is->transparent & 0x02) == 0 &&
-           desks.desk[desks.current].bg && desks.desk[desks.current].bg->pmap)
-          bg = desks.desk[desks.current].bg->pmap;
        XTranslateCoordinates(disp, win, root.win, 0, 0, &xx, &yy, &cr);
 /*     printf("ImageStateMakePmapMask %#lx %d %d %d %d\n", win, xx, yy, w, h); */
-       imlib_context_set_drawable(bg);
-       ii = imlib_create_image_from_drawable(0, xx, yy, w, h, 1);
-       imlib_context_set_image(ii);
-       imlib_context_set_drawable(win);
+       if (xx < root.w && yy < root.h && xx + w >= 0 && yy + h >= 0)
+         {
+            /* Create the background base image */
+            bg = root.win;
+            if ((is->transparent & 0x02) == 0 &&
+                desks.desk[desks.current].bg
+                && desks.desk[desks.current].bg->pmap)
+               bg = desks.desk[desks.current].bg->pmap;
+            imlib_context_set_drawable(bg);
+            ii = imlib_create_image_from_drawable(0, xx, yy, w, h, 1);
+            imlib_context_set_image(ii);
+            imlib_context_set_drawable(win);
+         }
      }
    else
      {




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to