[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XEmbed patches

From: Jan Djärv
Subject: Re: XEmbed patches
Date: Fri, 20 Jul 2007 12:33:34 +0200
User-agent: Thunderbird (Macintosh/20070604)

David Kastrup skrev:
Jason Rumney <address@hidden> writes:

A better solution would be to remove the restriction that frames must be
an integer number of characters wide (and high). Then the scrollbar and
toolbar can be made the correct size without empty filler padding them
out to a multiple of the character size.

When resizing an Emacs frame, the window manager's display of the
actual size and a character-size granularity are nice to have.
However, the displayed geometry clearly does not count in the
decorations from Emacs itself (scrollbar, fringes), so there is
apparently already a mechanism in place in the window-manager
communication that can discount decorations, and it is not unlikely
that the decorations need not have character cell size.

You set hints to the window manager how big an increment (character size) is in x and y directions. You also tell it the minimum size (i.e. the size of the scrollbars, fringes, menu and toolbar) of your window. That way the WM can calculate the character increment and display that when the window is resized.

For embedding, however, one might need to pad or fill still.

That is true.

        Jan D.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]