Re: TWM: truetype support

Marc Aurele La France <[email protected]> Sun, 4 Nov 2007 11:48:13 -0700 (Mountain Standard Time)
Newsgroups gmane.comp.xfree86.devel
Message-ID <Pine.WNT.4.64.0711041147120.1432@tsi>
On Thu, 1 Nov 2007, Eeri Kask wrote:
>>>> (1) In iconmgr.c.diff6  at the end is corrected a bug which leads to
>>>> *multicolumn* iconmanager window width gradual collapse under certain
>>>> circumstances while computing 'wwidth'.  I observed this while resizing
>>>> and/or moving the icon manager window and then terminating some client,
>>>> say xcalc.  In that moment the icon manager window gets squeezed
>>>> unexpectedly showing this bug.

>>> I am sure my correction to this problem is not correct, as it only
>>> "undoes" something what gets screwed somewhere else (namely, ip->width
>>> seems to have incorrect value on enrty into PackIconManager()).  I'll
>>> have to study the problem more closely and then suggest a bugfix.

>> OK.  I've "#if 0"'ed it out for now.  Let me know when you're ready.

> I am making progress.  While finalising XFT-support in cleaning up
> memory leaks with the help of your patches I noticed you have missed one
> case in leak-cleanup:  the client window title bar.  Here is the
> relevant snippet from events.c function HandleDestroyNotify():

>    if (Tmp_win->title_height)
>    {
> 	int nb = Scr->TBInfo.nleft + Scr->TBInfo.nright;
> 	XDeleteContext(dpy, Tmp_win->title_w, TwmContext);
> 	XDeleteContext(dpy, Tmp_win->title_w, ScreenContext);
> 	if (Tmp_win->hilite_w)
> 	{
> 	    XDeleteContext(dpy, Tmp_win->hilite_w, TwmContext);
> 	    XDeleteContext(dpy, Tmp_win->hilite_w, ScreenContext);
> 	}
> 	if (Tmp_win->titlebuttons) {
> 	    for (i = 0; i < nb; i++) {
> 		XDeleteContext (dpy, Tmp_win->titlebuttons[i].window,
> 				TwmContext);
> 		XDeleteContext (dpy, Tmp_win->titlebuttons[i].window,
> 				ScreenContext);
> 	    }
>        }
> #ifdef TWM_USE_XFT
> 	XftDrawDestroy (Tmp_win->xft_title_w);
> #endif
>    }

Good point.  Thanks.

Marc.

+----------------------------------+----------------------------------+
|  Marc Aurele La France           |  work:   1-780-492-9310          |
|  Academic Information and        |  fax:    1-780-492-1729          |
|    Communications Technologies   |  email:  [email protected]         |
|  352 General Services Building   +----------------------------------+
|  University of Alberta           |                                  |
|  Edmonton, Alberta               |    Standard disclaimers apply    |
|  T6G 2H1                         |                                  |
|  CANADA                          |                                  |
+----------------------------------+----------------------------------+
XFree86 developer and VP.  ATI driver and X server internals.