summaryrefslogtreecommitdiff
path: root/kde
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2009-01-14 15:31:23 +0100
committerDennis Kasprzyk <onestone@compiz-fusion.org>2009-01-14 15:31:23 +0100
commit438ca6439fd2dc85774b83f887eb893a17726d05 (patch)
tree57e3dd6cf8efab3359963c9393eb059a244dc797 /kde
parent531ccf8b922695911d15bb6c0b6bf98c084952a7 (diff)
downloadzcomp-438ca6439fd2dc85774b83f887eb893a17726d05.tar.gz
zcomp-438ca6439fd2dc85774b83f887eb893a17726d05.tar.bz2
Added support for changed KDE 4.2 decoration API.
Diffstat (limited to 'kde')
-rw-r--r--kde/window-decorator-kde4/window.cpp23
-rw-r--r--kde/window-decorator-kde4/window.h9
2 files changed, 31 insertions, 1 deletions
diff --git a/kde/window-decorator-kde4/window.cpp b/kde/window-decorator-kde4/window.cpp
index 57aa5b7..af034aa 100644
--- a/kde/window-decorator-kde4/window.cpp
+++ b/kde/window-decorator-kde4/window.cpp
@@ -2246,3 +2246,26 @@ KWD::Window::eventFilter( QObject* o, QEvent* e )
}
return false;
}
+
+// unsable API part
+void
+KWD::Window::repaintShadow()
+{
+}
+
+bool
+KWD::Window::compositingActive() const
+{
+ return false;
+}
+
+bool
+KWD::Window::shadowsActive() const
+{
+ return false;
+}
+
+double KWD::Window::opacity() const
+{
+ return 1.0;
+}
diff --git a/kde/window-decorator-kde4/window.h b/kde/window-decorator-kde4/window.h
index 2753546..fe25cbf 100644
--- a/kde/window-decorator-kde4/window.h
+++ b/kde/window-decorator-kde4/window.h
@@ -45,7 +45,7 @@ class QMenu;
namespace KWD
{
-class Window:public QWidget, public KDecorationBridge {
+class Window:public QWidget, public KDecorationBridgeUnstable {
Q_OBJECT public:
enum Type
@@ -61,6 +61,13 @@ class Window:public QWidget, public KDecorationBridge {
int x = 0, int y = 0, int w = 1, int h = 1);
~Window (void);
+ // unsable API part
+ virtual void repaintShadow();
+ virtual bool compositingActive() const;
+ virtual bool shadowsActive() const;
+ virtual double opacity() const;
+
+ // stable API part;
virtual bool isActive (void) const;
virtual bool isCloseable (void) const;
virtual bool isMaximizable (void) const;