Commit graph

60 commits

Author SHA1 Message Date
Luciano Montanaro
97d274b7c3 - Fix the titlebar height for the rest of the shipped decorations.
- Fix the "sticky" button rendering in the quartz decoration.

svn path=/trunk/KDE/kdebase/workspace/; revision=740254
2007-11-22 21:18:09 +00:00
Aaron J. Seigo
9048abe173 take advantage of KDecorationOptions::defaultTitleButtons[Left|Right]
svn path=/trunk/KDE/kdebase/workspace/; revision=737210
2007-11-15 20:14:41 +00:00
Luboš Luňák
f52b8e48cd branches/work/kwin_composite becomes new trunk kwin.
svn path=/trunk/KDE/kdebase/workspace/; revision=659202
2007-04-29 17:35:43 +00:00
Luboš Luňák
2b7e1f4993 Remove kwin, kwin_composite will become new trunk kwin, missing merges
from trunk will be merged in.


svn path=/trunk/KDE/kdebase/workspace/; revision=659200
2007-04-29 17:34:49 +00:00
Dirk Mueller
561fdef0ff include cleanup
svn path=/trunk/KDE/kdebase/workspace/; revision=652987
2007-04-12 13:02:58 +00:00
Laurent Montel
5725624c8b #include <q...h> -> #include <Q...>
svn path=/trunk/KDE/kdebase/workspace/; revision=540496
2006-05-13 16:33:18 +00:00
Laurent Montel
7f7ce52d78 #include <q...h> -> #include <Q...>
svn path=/trunk/KDE/kdebase/workspace/; revision=539617
2006-05-11 08:04:23 +00:00
Sandro Giessl
fdb1b61473 Make kwin decorations API free of Qt3 support members
svn path=/trunk/KDE/kdebase/workspace/; revision=515804
2006-03-04 22:27:27 +00:00
Laurent Montel
1e8cf8aa59 deprecated--
svn path=/trunk/KDE/kdebase/workspace/; revision=512447
2006-02-22 15:08:04 +00:00
Dirk Mueller
e20f2bd6b2 SVN_SILENT: fix typo
svn path=/trunk/KDE/kdebase/kdm/; revision=467416
2005-10-05 08:44:32 +00:00
Stephan Kulow
b464518b3c svn merge svn+ssh://coolo@svn.kde.org/home/kde/trunk/KDE/kdebase@438057
svn+ssh://coolo@svn.kde.org/home/kde/branches/work/kde4/kdebase
          .

I couldn't resolve one kicker conflict that results from different
development directions, so I rely on Aaron to sort it out - the file
is commited with conflicts

svn path=/trunk/KDE/kdebase/kwin/; revision=439627
2005-07-28 14:59:42 +00:00
Dirk Mueller
84efa15bbd update FSF address
svn path=/trunk/KDE/kdebase/kdm/; revision=431577
2005-07-04 19:02:09 +00:00
Sandro Giessl
99c7f10187 fall back to KCommonDecoration::layoutMetric
svn path=/trunk/kdebase/kwin/; revision=400746
2005-03-26 13:18:32 +00:00
Sandro Giessl
33438df578 no need to fake the titlebar background except for the menu button
svn path=/trunk/kdebase/kwin/; revision=400268
2005-03-24 16:56:58 +00:00
Sandro Giessl
6a8e5c41d8 Add an option for a titlebar-colored window border. I think it looks better than
before, enabled by default.

FEATURE: 98922

svn path=/trunk/kdebase/kwin/; revision=399363
2005-03-20 22:24:04 +00:00
Sandro Giessl
cd66337cff now do all painting through cached pixmaps and only paint things that are
in the PaintEvent region. makes it a bit easier to modify the look and saves
another ~15% for 100000 repaint resp. 10000 caption changes... :)

svn path=/trunk/kdebase/kwin/; revision=399339
2005-03-20 21:07:11 +00:00
Sandro Giessl
50a21c6be9 minor titlebar edge cleanup
remove the ShadowEngine... it is just too slow and even makes e.g. kmail feel
slower when dragging messages over the folder list. have a bogus shadow
instead (various drawText calls with blended colors) which also looks quite nice and
is twice as fast. Still no kwin decoration seems to feel as fast as metacity when it
comes to caption changes such as in the kmail example... This is something that should
be looked into IMHO.

svn path=/trunk/kdebase/kwin/; revision=398994
2005-03-19 16:01:36 +00:00
Sandro Giessl
b4d6b5fd91 slightly modified the look of the titlebar gradient
svn path=/trunk/kdebase/kwin/; revision=398179
2005-03-16 20:00:13 +00:00
Sandro Giessl
07540ec656 base shadow code on khtml's shadow code which is faster
svn path=/trunk/kdebase/kwin/; revision=398112
2005-03-16 15:21:34 +00:00
Sandro Giessl
87b57d4e7f no need to create as well the inactive as the active caption buffer. now only create them when needed...
svn path=/trunk/kdebase/kwin/; revision=397838
2005-03-15 16:09:49 +00:00
Sandro Giessl
5cb8a385e9 cache button icons in the handler. creation of 1000 decorations took 26s
before, now it's 10s... probably saves some memory, too.

svn path=/trunk/kdebase/kwin/; revision=397810
2005-03-15 14:07:37 +00:00
Sandro Giessl
c62cf962d6 do not use statics to access the handler
svn path=/trunk/kdebase/kwin/; revision=397053
2005-03-12 20:13:51 +00:00
Sandro Giessl
64e8b52430 keep cached pixmaps in the handler so not every decoration needs to create its own pixmaps...
svn path=/trunk/kdebase/kwin/; revision=397041
2005-03-12 19:31:31 +00:00
Sandro Giessl
45d3cfaa36 speed up rendering a bit more by reducing the number of unnecessary QPainter calls.
svn path=/trunk/kdebase/kwin/; revision=396916
2005-03-12 09:58:35 +00:00
Sandro Giessl
6915c12e5f optimize the painting of title bar tiles a bit...
svn path=/trunk/kdebase/kwin/; revision=396915
2005-03-12 09:34:44 +00:00
Sandro Giessl
74dda10aaa Port Plastik to KCommonDecoration.
svn path=/trunk/kdebase/kwin/; revision=396773
2005-03-11 20:14:04 +00:00
Sandro Giessl
1d8bbaf6ff Only show the maximized state if the maximizeMode is MaximizeFull. Other
decorations seem to do it right.

BUG: 97681

svn path=/trunk/kdebase/kwin/; revision=381966
2005-01-24 15:28:52 +00:00
Allan Sandfeld Jensen
371b40edbd Make the shadows work just a little better on dark text
svn path=/trunk/kdebase/kwin/; revision=381060
2005-01-22 01:13:39 +00:00
Sandro Giessl
61592fea4c Apply patch by Toby Dickenson (thanks a lot!):
Do not round (mask) the decoration corners if the window aligns to a screen corner.
This has two advantages:
- Fitt's Law applies for resizing windows
- Prevents accidentally hitting buttons of maximized windows behind the active window

Hasn't been tested with xinerama setups but this should work as well. Hopefully
someone can test it before KDE 3.4.

CCMAIL: toby@tarind.com
BUG: 93918

svn path=/trunk/kdebase/kwin/; revision=380112
2005-01-19 15:32:01 +00:00
Sandro Giessl
cf532c077d Reduce the titlebar height by 2 pixel for maximized windows to make the buttons
look a bit more centered.
FEATURE: 91461

svn path=/trunk/kdebase/kwin/; revision=369845
2004-12-11 12:53:21 +00:00
Luboš Luňák
9a5a1c5d95 Fix shading: isShade() returns the actual state of the window, and isSetShade()
returns the state set by the user - these two may differ e.g. while hover-unshaded.
Therefore titlebar buttons should use isSetShade(), otherwise they become
a bit useless with hover-unshading.
Also fix updating the button state - the styles duplicate way too much code,
and if one of them has a bug, most of them definitely have it as well. Some
of the code should probably move to the decoration lib :-/ .

svn path=/trunk/kdebase/kwin/; revision=366147
2004-11-25 16:08:46 +00:00
Sandro Giessl
27be3a1885 consistent preview label
svn path=/trunk/kdebase/kwin/; revision=360767
2004-11-05 17:02:03 +00:00
Sandro Giessl
d6895baaec CVS_SILENTindentation...
svn path=/trunk/kdebase/kwin/; revision=355294
2004-10-17 14:20:15 +00:00
Sandro Giessl
6aa9273dbf this exception for shaded windows was necessary for the old decoration API...
svn path=/trunk/kdebase/kwin/; revision=355292
2004-10-17 14:19:27 +00:00
Sandro Giessl
78b5894323 Aaron has a point. This kind of things a CVS log isn't obvious enough. ;)
svn path=/trunk/kdebase/kwin/; revision=355244
2004-10-17 11:31:37 +00:00
Sandro Giessl
3e88c13677 Don't call widget()->update() in our resizeEvent()! Resizing windows with
Plastik decorations feels faster now.

There already is something which triggers PaintEvents, I don't understand why
this is. However paintEvent() has actually been called 2 (!) times for every
resize event.
It seems that other window decorations have the same problem, I will check that
later.

CCMAIL: kwin@kde.org

svn path=/trunk/kdebase/kwin/; revision=355068
2004-10-16 16:47:56 +00:00
Sandro Giessl
a9d20d0fc4 CVS_SILENT
remove unused showEvent().

svn path=/trunk/kdebase/kwin/; revision=354765
2004-10-15 14:50:48 +00:00
Sandro Giessl
4b5de39c57 CVS_SILENT
clenup, windowWrapperShowEvent seems to be a relict from pre-kwin3 times...
showEvent() doesn't seem to be used either, perhaps it could be removed as well.

svn path=/trunk/kdebase/kwin/; revision=354761
2004-10-15 14:44:33 +00:00
Sandro Giessl
7e3a491809 use the new maximize() overload
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=332085
2004-07-23 17:02:25 +00:00
Sandro Giessl
8b5755fb4c check keepAboveChanged() and keepBelowChanged() signals (#84841)
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=332079
2004-07-23 16:50:02 +00:00
Stephan Binner
0595b2d641 CVS_SILENT i18n style guide fixes
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=323402
2004-06-24 19:44:18 +00:00
Sandro Giessl
32580f2f51 use Luciano's showWindowMenu
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=317138
2004-06-02 18:49:47 +00:00
Sandro Giessl
6b27d7484b Implement "Shade", "Keep Above Others", "Keep Below Others" buttons (#60369).
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=311527
2004-05-14 22:50:53 +00:00
Luboš Luňák
0eeaa25674 No NET::NET::Utility.
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=297865
2004-03-22 17:06:49 +00:00
Sandro Giessl
0ae6966cf3 ugh, fix another small error of my last commit.
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=279100
2004-01-12 17:17:02 +00:00
Grzegorz Jaskiewicz
b96ad47cd6 Small error corrected, doesn't segfault anymore.
Sandro approved change.

svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=279081
2004-01-12 15:01:51 +00:00
Sandro Giessl
dac6116169 Set the current window state when initializing OnAllDesktop buttons. (#71531)
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=278185
2004-01-09 16:38:08 +00:00
Luboš Luňák
8b20fbbd13 windowType() is supposed to take all types the code knows, not only
all types it wants to handle.

svn path=/trunk/kdebase/kwin/; revision=277203
2004-01-06 10:13:20 +00:00
Luboš Luňák
7224e77a6b MousePosition renaming updates.
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=273146
2003-12-15 15:14:45 +00:00
Sandro Giessl
60254757fe Fix #67681: "Plastik style often displays incorrect maximize button"
CCMAIL: 67681-done@bugs.kde.org

svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=265849
2003-11-09 18:47:08 +00:00