Commit graph

49 commits

Author SHA1 Message Date
Lucas Murray
8d09ed341a Remove old decoration shadow API, rename AbilityProvidesShadow and add
support for the new decoration shadow API in the shadow effect.

svn path=/trunk/KDE/kdebase/workspace/; revision=980130
2009-06-11 08:11:13 +00:00
Fredrik Höglund
8bba7aed7d Make it possible for the decorations to paint outside the window frame
when compositing is enabled, by letting them add additional padding
to the sides of the frame.

svn path=/trunk/KDE/kdebase/workspace/; revision=963586
2009-05-04 22:35:33 +00:00
Lucas Murray
154c19b0e7 Make the client shadowOpacity() return a relative opacity instead of absolute.
svn path=/trunk/KDE/kdebase/workspace/; revision=873440
2008-10-19 13:43:16 +00:00
Lucas Murray
af1b639a9d Rename the new decoration API and mark it as unstable. Supporting a hacked API is suicide.
Will correctly handle this in KDE 4.3 by using ARGB decorations, even if it's not pretty.

svn path=/trunk/KDE/kdebase/workspace/; revision=872795
2008-10-18 08:10:37 +00:00
Lucas Murray
899d578c49 Merge Libkdecoration2 Git branch.
WARNING: Breaks shadow effect. I don't think it causes anything to crash anymore but it is VERY ugly visually.

Contains:
 - New decoration API that allows decorations to change the way shadows look.
 - Shadows now wobble.
 - API example code in the Oxygen decoration.
 - Added buildQuads() effect plugin hook.
 - Work on the shadow effect to use the new decoration shadow API as well.
 - Added IDs to WindowQuads.
 - Added public accessors to texture coords in WindowVertex.

Would like all this to be reviewed.

CCMAIL: kwin@kde.org

svn path=/trunk/KDE/kdebase/workspace/; revision=872473
2008-10-17 10:30:43 +00:00
Lucas Murray
0cfe3b2c73 Fix indenting of decoration files.
svn path=/trunk/KDE/kdebase/workspace/; revision=863806
2008-09-23 07:54:28 +00:00
Bram Schoenmakers
a707d588c3 Forward port r851037: Respect option "Show window button tooltips"
svn path=/trunk/KDE/kdebase/workspace/; revision=851041
2008-08-22 19:24:43 +00:00
Luboš Luňák
be22824e02 Show tooltips.
BUG: 162648


svn path=/trunk/KDE/kdebase/workspace/; revision=817651
2008-06-06 14:19:53 +00:00
Lukas Kropatschek
8eeddd6c55 some krazy include issue fixes
svn path=/trunk/KDE/kdebase/workspace/; revision=814568
2008-05-30 17:47:24 +00:00
Luboš Luňák
685e1d2361 Make it possible to use KDecorationOptions without private headers.
svn path=/trunk/KDE/kdebase/workspace/; revision=768271
2008-01-29 16:44:41 +00:00
Luboš Luňák
7d620a3ad8 Make KDecorationBridge also public and with kept binary compatibility,
so that Compiz can use it for the KDE decorator. Extending will be
done the same way like with KDecoration.
CCMAIL: Dennis Kasprzyk <onestone@opencompositing.org>


svn path=/trunk/KDE/kdebase/workspace/; revision=766833
2008-01-26 19:00:14 +00:00
Luboš Luňák
daf1fbd23e Add spacers before the close button to make it stand alone,
but don't alter the layout otherwise.


svn path=/trunk/KDE/kdebase/workspace/; revision=743055
2007-11-29 19:28:07 +00:00
Luboš Luňák
9cae215d63 Maybe later, if somebody will feel like it, too late for KDE4 I think.
svn path=/trunk/KDE/kdebase/workspace/; revision=742977
2007-11-29 14:13:02 +00:00
Luboš Luňák
0170623a9c Separate KCommonDecoration from KDecoration, in order to allow
greater possibilities in extending KDecoration. KCommonDecoration
now does not inherit KDecoration, only wraps it (i.e. it's source
compatible). Added comments on how to extend KDecoration
in the future by subclassing to KDecoration2, added PORTING
document with all API changes in KDE4.
CCMAIL: kwin@kde.org


svn path=/trunk/KDE/kdebase/workspace/; revision=742976
2007-11-29 14:11:02 +00:00
Luboš Luňák
c83210c60a Remove all code for non-composited animations - they don't work anyway.
svn path=/trunk/KDE/kdebase/workspace/; revision=739143
2007-11-20 16:07:20 +00:00
Luboš Luňák
ab70575d1f Make the outline for moving/resizing work with Qt4, which bothers
to support XOR painting only when XRender is available. Given that
outline should be mainly used with older systems, go for a DIY Xlib-based
solution. Needs changes in decorations using it.
BUG: 149997


svn path=/trunk/KDE/kdebase/workspace/; revision=739136
2007-11-20 16:00:58 +00:00
Aaron J. Seigo
003a0ea7d0 introduce KDecorationOptions::defaultTitleButtonsLeft() and KDecorationOptions::defaultTitleButtonsRight() so as to centralize this default
svn path=/trunk/KDE/kdebase/workspace/; revision=737205
2007-11-15 20:08:57 +00:00
Aaron J. Seigo
b9c69f425b various ebn fixes (markup, uninling, QString())
svn path=/trunk/KDE/kdebase/workspace/; revision=692765
2007-07-26 07:51:16 +00:00
Aaron J. Seigo
dd72494b2b these are all cheap to pass around and make ebn happy
svn path=/trunk/KDE/kdebase/workspace/; revision=692309
2007-07-25 10:28:57 +00:00
Luboš Luňák
1f71d535b5 Merging from old trunk:
r604645 | mlaurent | 2006-11-13 16:31:59 +0100 (Mon, 13 Nov 2006) | 2 lines

Fix compile with compilator!=gcc


svn path=/trunk/KDE/kdebase/workspace/; revision=659311
2007-04-29 22:38:19 +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
Luboš Luňák
1397ebb5eb No double-buffering for decorations, the memory taken
by such backing pixmaps would be quite noticeable.


svn path=/branches/work/kwin_composite/; revision=632377
2007-02-10 21:50:43 +00:00
Laurent Montel
012be9b663 Fix compile with compilator!=gcc
svn path=/trunk/KDE/kdebase/workspace/; revision=604645
2006-11-13 15:31:59 +00:00
Luboš Luňák
a23d4f820b These warnings were pretty annoying.
svn path=/branches/work/kwin_composite/; revision=558180
2006-07-04 20:23:29 +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
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
1c3e66488b Adapt to new kde4 api
Remove some qt3support

svn path=/trunk/KDE/kdebase/workspace/; revision=478902
2005-11-08 10:20:07 +00:00
Stephan Kulow
6c821aba01 some more compiling
svn path=/trunk/KDE/kdebase/workspace/; revision=473006
2005-10-22 11:35:06 +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
Luboš Luňák
fc90a04635 Make it possible to do all kinds of strange things when mousewheeling
the titlebar or Alt+mousewheeling the window.
FEATURE:44318
FEATURE:66519
FEATURE:76188


svn path=/trunk/KDE/kdebase/kwin/; revision=410058
2005-05-06 15:20:49 +00:00
Luboš Luňák
aa28465df5 I think I got persuaded that having a direct access to the decorated
window might be useful in very very very rare cases.

svn path=/trunk/kdebase/kwin/; revision=368911
2004-12-06 15:46:27 +00:00
Luboš Luňák
43f9553004 Adding yet another option, this time for what happens when clicking
the maximize button.

svn path=/trunk/kdebase/kwin/; revision=342186
2004-08-28 15:27:22 +00:00
Luboš Luňák
f5668e9dff Explain in docs how to do maximize + convenience function.
svn path=/trunk/kdebase/kwin/; revision=331721
2004-07-22 11:17:16 +00:00
Luciano Montanaro
7240bff8f1 Added a new variant of showWindowMenu() that takes an originating rect instead
of a point. This method should be preferred to bring up the actions menu  from
the menu button, since it makes it a bit harder to select a menu item
involuntaryily in some corner case.

svn path=/trunk/kdebase/kwin/; revision=317016
2004-06-02 09:47:36 +00:00
Luboš Luňák
dd81cc4c6e Use the actual border sizes instead of hardcoded 4 for mousePosition(),
so that this is more flexible and decorations don't have to reimplement
it completely.

svn path=/trunk/kdebase/kwin/; revision=296910
2004-03-18 16:56:11 +00:00
Luboš Luňák
d445cb905e Avoid warning.
svn path=/trunk/kdebase/kwin/; revision=279594
2004-01-14 12:01:09 +00:00
Benjamin Meyer
2635bda927 Added ifdef around the x11 includes when building --without-x
svn path=/trunk/kdebase/kwin/; revision=273871
2003-12-19 14:01:43 +00:00
Luboš Luňák
2197c646eb Reserve one virtual function in the interface that I plan to use after 3.2.
svn path=/trunk/kdebase/kwin/; revision=273149
2003-12-15 15:18:10 +00:00
Luboš Luňák
569224d117 Replace the temporary MousePosition enum naming with something that
doesn't look so silly and doesn't conflict with Qt.

svn path=/trunk/kdebase/kwin/; revision=273144
2003-12-15 15:10:17 +00:00
Luboš Luňák
c26c55787f Remove some obsolete comments.
svn path=/trunk/kdebase/kwin/; revision=273143
2003-12-15 14:44:17 +00:00
Luboš Luňák
0ba12a0837 Perform whole new window managing with X server grab, in order to prevent
"smart" apps from doing stupid things before they get MapNotify.
This avoids the recent Java+OracleInstaller strange problem too.
The patch may look huge, but it's only adding two KWin wrappers
for X(Un)GrabServer() and uncommenting the calls in Client::manage().

svn path=/trunk/kdebase/kwin/; revision=271152
2003-12-04 13:54:10 +00:00
Luboš Luňák
4ee178b277 Fix #69005 - make it possible to differentiate between a window really
being shaded and being set to be shaded (which may differ with hover unshade).

svn path=/trunk/kdebase/kwin/; revision=269526
2003-11-25 15:26:50 +00:00
Luboš Luňák
b884178c99 KDecoration::unobscuredRegion(), for B2 titlebar unhiding.
svn path=/trunk/kdebase/kwin/; revision=262494
2003-10-27 16:28:53 +00:00
Luboš Luňák
81e475c523 Make it possible to find out window type also in createDecoration().
svn path=/trunk/kdebase/kwin/; revision=254816
2003-09-29 11:21:46 +00:00
Luboš Luňák
cefae8f1e4 Allows the decorations to specify which border sizes they support.
Also added GUI for the border size, not perfect, but it's there.

svn path=/trunk/kdebase/kwin/; revision=253572
2003-09-24 12:41:56 +00:00
Luboš Luňák
9fac9d2a43 Fixes for mousePosition().
Since Qt propagates mouse events up the widget hierarchy, it's better
to filter out Qt events rather than X events for the decoration.

svn path=/trunk/kdebase/kwin/; revision=252346
2003-09-19 11:11:07 +00:00
Luboš Luňák
586b2c8fd2 Fix --enable-final.
svn path=/trunk/kdebase/kwin/; revision=251775
2003-09-17 08:38:14 +00:00
Luboš Luňák
613d583174 Merging decoration library from kwin_iii back to HEAD.
svn path=/trunk/kdebase/kwin/; revision=251611
2003-09-16 19:29:21 +00:00