Commit graph

8 commits

Author SHA1 Message Date
Waldo Bastian
2f90225543 Put stuff in KWinInternal namespace.
Export client.h, workspace.h and options.h so that people can write plugins.

svn path=/trunk/kdebase/kwin/; revision=83707
2001-02-20 01:20:38 +00:00
Matthias Ettrich
1512bcd09f patch by boud2
svn path=/trunk/kdebase/kwin/; revision=68706
2000-10-23 14:42:16 +00:00
Daniel M. Duley
a974abc657 Fixes for when active colors != inactive colors && titlebutton colors !=
frame colors.

svn path=/trunk/kdebase/kwin/; revision=47729
2000-04-28 10:10:27 +00:00
Daniel M. Duley
ef63e498cc Updated drawing code. The titlebar buttons color setting is being changed from
three entries (button fg, bg, and blend) to one - button color. What exactly
to do with this is up to the individual style. This is less customizable but
a hell of a lot more coherent since the styles all draw their buttons so
differently. Right now I'm just using the button background entry. Once all
the styles are ported I'll switch to a generic button color entry.

Also I made my buttons more like other window manager styles/themes that
aim to more or less emulate platinum, but not enough to get nasty mail from
Apple ;-)

svn path=/trunk/kdebase/kwin/; revision=47697
2000-04-28 02:44:29 +00:00
Daniel M. Duley
7ba2cf2d87 Big ole speed improvement :)
First off, Rikkus was right about double buffering. I really didn't think this
was needed and tried everything to get rid of the flicker but it didn't happen
until I double buffered the title. I was able to optimize this quite a bit
(only recalc on resize, only buffer the active title/color scheme, etc...).

In the meantime, I got rid of a lot of non-optimal painting and now use
NoBackground for the widget. The latter was a obvious move as it avoids a whole
clearing of the widget :P This resulted in a big speed improvement, which helps
offset the time taken in buffering ;-)

svn path=/trunk/kdebase/kwin/; revision=45264
2000-04-01 01:18:12 +00:00
Daniel M. Duley
06a809e7ac Screwing around with the titlebar layout a little. Windows can now be resized
smaller than the sizeHint of the bar.

Repainting is also messed up with all the clients it seems... dunno how that
happened :P

svn path=/trunk/kdebase/kwin/; revision=43873
2000-03-18 12:35:05 +00:00
Daniel M. Duley
49aba34b01 My weekly big ass style commit ;-) This implements what I discussed earlier
today.

First: All decoration pixmaps are now regenerated when the palette color scheme
changes. There is no longer any need to apply color schemes *before* switching
styles or reload the plugin. The schemes can change any time and be handled
correctly by styles that generate their pixmaps based on the color scheme.

Second: The color scheme has been extended to allow separate entries for
different visual styles. For example there are now entries for both titlebar
rectangle fills like those used in the standard KDE style and KStep vs.
titlebar grooves like those used in System. The same thing applies to
foreground colors for buttons that follow the button background settings like
KStep and System vs. those that don't like the standard style.

Right now none of the color schemes have the new entries so defaults are
calculated, usually by judging the intensity of what the decoration is
drawn on and contrasted with that. To check things out look at the standard,
KStep, and System styles under color schemes like default, CDE, and Digital
CDE.

The Be style is not updated because I have a cooler one on my HD ;-)

I hope this makes David happier <grin> :)

svn path=/trunk/kdebase/kwin/; revision=39126
2000-01-23 23:33:29 +00:00
Daniel M. Duley
de782ec37b Implemented plugins :) This was a huge pain in the arse because a) I am stupid
and it kept segfaulting because I wasn't releasing windows, and b) The plugins
didn't want to resolve anything in the kwin executable, only to the other
libs. I finally solved this by using -rdynamic in kwin's LDFLAGS, which I hope
is okay ;-)

svn path=/trunk/kdebase/kwin/; revision=37234
1999-12-24 01:36:47 +00:00