• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Japanese translation of message catalog for Sawfish Window-Manager


Commit MetaInfo

Revisãob52660d8c7ace8c0f678091aaf93d3f34b57ede0 (tree)
Hora1999-07-30 18:46:02
Autorjohn <john>
Commiterjohn

Mensagem de Log

(list_frame_generator): handle propagating the shape of the client to
the frame here since it's a lot less ugly

Mudança Sumário

Diff

--- a/src/frames.c
+++ b/src/frames.c
@@ -658,7 +658,7 @@ list_frame_generator (Lisp_Window *w)
658658 tem = Qnil;
659659 if (tem == Qnil)
660660 {
661- XRectangle *rects = alloca (sizeof (XRectangle) * nparts);
661+ XRectangle *rects = alloca (sizeof (XRectangle) * nparts + 1);
662662 int i;
663663 for (i = 0, fp = w->frame_parts; i < nparts; i++, fp = fp->next)
664664 {
@@ -667,8 +667,22 @@ list_frame_generator (Lisp_Window *w)
667667 rects[i].width = fp->width;
668668 rects[i].height = fp->height;
669669 }
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+ }
670678 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+ }
672686 }
673687
674688 /* create/update windows for each part */