Enlightenment CVS committal
Author : raster
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_border.c
Log Message:
fix slight shape bug
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.341
retrieving revision 1.342
diff -u -3 -r1.341 -r1.342
--- e_border.c 25 Jul 2005 09:55:44 -0000 1.341
+++ e_border.c 26 Jul 2005 04:06:28 -0000 1.342
@@ -4005,14 +4005,24 @@
Ecore_X_Rectangle *rects;
int num;
+ bd->changes.shape = 0;
rects = ecore_x_window_shape_rectangles_get(bd->client.win, &num);
if (rects)
{
+ int cw = 0, ch = 0;
+
+ /* This doesnt fix the race, but makes it smaller. we detect
+ * this and if cw and ch != client w/h then mark this as needing
+ * a shape change again to fixup next event loop.
+ */
+ ecore_x_window_size_get(bd->client.win, &cw, &ch);
+ if ((cw != bd->client.w) || (ch != bd->client.h))
+ bd->changes.shape = 1;
if ((num == 1) &&
(rects[0].x == 0) &&
(rects[0].y == 0) &&
- (rects[0].width == bd->client.w) &&
- (rects[0].height == bd->client.h))
+ (rects[0].width == cw) &&
+ (rects[0].height == ch))
{
if (bd->client.shaped)
{
@@ -4031,7 +4041,6 @@
else
bd->client.shaped = 0;
bd->need_shape_merge = 1;
- bd->changes.shape = 0;
}
if (bd->new_client)
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs