Japanese translation of message catalog for Sawfish Window-Manager
Revisão | b52660d8c7ace8c0f678091aaf93d3f34b57ede0 (tree) |
---|---|
Hora | 1999-07-30 18:46:02 |
Autor | john <john> |
Commiter | john |
(list_frame_generator): handle propagating the shape of the client to
the frame here since it's a lot less ugly
@@ -658,7 +658,7 @@ list_frame_generator (Lisp_Window *w) | ||
658 | 658 | tem = Qnil; |
659 | 659 | if (tem == Qnil) |
660 | 660 | { |
661 | - XRectangle *rects = alloca (sizeof (XRectangle) * nparts); | |
661 | + XRectangle *rects = alloca (sizeof (XRectangle) * nparts + 1); | |
662 | 662 | int i; |
663 | 663 | for (i = 0, fp = w->frame_parts; i < nparts; i++, fp = fp->next) |
664 | 664 | { |
@@ -667,8 +667,22 @@ list_frame_generator (Lisp_Window *w) | ||
667 | 667 | rects[i].width = fp->width; |
668 | 668 | rects[i].height = fp->height; |
669 | 669 | } |
670 | + if (!w->shaped) | |
671 | + { | |
672 | + rects[i].x = -w->frame_x; | |
673 | + rects[i].y = -w->frame_y; | |
674 | + rects[i].width = w->frame_width; | |
675 | + rects[i].height = w->frame_height; | |
676 | + i++; | |
677 | + } | |
670 | 678 | XShapeCombineRectangles (dpy, w->frame, ShapeBounding, 0, 0, |
671 | - rects, nparts, ShapeSet, Unsorted); | |
679 | + rects, i, ShapeSet, Unsorted); | |
680 | + if (w->shaped) | |
681 | + { | |
682 | + XShapeCombineShape (dpy, w->frame, ShapeBounding, | |
683 | + -w->frame_x, -w->frame_y, w->id, | |
684 | + ShapeBounding, ShapeUnion); | |
685 | + } | |
672 | 686 | } |
673 | 687 | |
674 | 688 | /* create/update windows for each part */ |