It would be nice if the geometry parser was made to
understand
the following:
- Percentages or decimal fractions in size
specifications
e.g. either of the following would cause the window
to take up half the screen in width and
height:
50%x50%
.5x.5
Decimal fractions can be differentiated from
size-in-pixels
by the occurance of a decimal point.
(So for example 1 means 1 pixel, but 1. means the
full screen.)
- Percentages or decimal fractions in position
specifications
e.g. any of the following would cause the window
to be
half the screen size and centered:
50%x50%+25%+25%
.5*.5+.25+.25
.5*.5-.25-.25
- Negative sizes, interpreted similarly to negative
positions.
E.g. my preference would be:
-24x75%, meaning (screen width - 24)x(screen
height * 75%)
The attached patch implements this enhancement.
There are a couple of issues marked with XXX that you
might want
to deal with differently.
patch to implement smarter geometry parsing enhancement request
Logged In: YES
user_id=10996
thx for suggestion and patch, will integrate into main src
eventually (when i have a minute)