[Konsole-devel] [PATCH] Add support for the composite extension
Fredrik Höglund
fredrik at kde.org
Tue Mar 30 22:24:40 UTC 2004
Hi,
These patches implement support for "real" transparency on X servers
that support the new Composite extension, which currently means the
kdrive server on freedesktop.org.
X server support for the 32bit ARGB visual is autodetected on startup,
and if it's not supported konsole falls back to using the current pseudo
transparency hack. In other words those that use legacy X servers should
be unaffected by these changes.
The patch doesn't introduce any new library or protocol dependencies.
Note that use of the ARGB visual is disabled when konsole is embedded as
a KPart, since in this situation both the toplevel window and the konsole
widget must use the ARGB visual for transparency to work.
There are two things that behave differently when the ARGB visual is used:
1) The text widget renders each character twice to produce a black text
shadow effect, intended to improve readability of bright text on bright
backgrounds.
2) Background colors are always rendered semi-transparent by combining
them with the widgets background color, using a hardcoded opacity of 75%.
This removes the need for a special color scheme for having a
transparent midnight commander.
Neither of these two features are currently configurable. I'd like some
feedback on both. Especially the latter - e.g. perhaps the background
color opacity should be made a part of the color schemes instead of
being hardcoded.
Regards,
Fredrik
P.S Note that I'm not subscribed to the konsole-devel list.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdecore.patch
Type: text/x-diff
Size: 6550 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/konsole-devel/attachments/20040330/4eee7436/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: konsole.patch
Type: text/x-diff
Size: 11216 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/konsole-devel/attachments/20040330/4eee7436/attachment-0001.bin>
More information about the konsole-devel
mailing list