Merge lp:~ivenvd/compiz/compiz.fix_1193792 into lp:compiz/0.9.10

Proposed by Iven Hsu
Status: Merged
Approved by: MC Return
Approved revision: 3745
Merged at revision: 3745
Proposed branch: lp:~ivenvd/compiz/compiz.fix_1193792
Merge into: lp:compiz/0.9.10
Diff against target: 148 lines (+122/-0)
3 files modified
kde/window-decorator-kde4/kdecorationbridge.h (+115/-0)
kde/window-decorator-kde4/window.cpp (+6/-0)
kde/window-decorator-kde4/window.h (+1/-0)
To merge this branch: bzr merge lp:~ivenvd/compiz/compiz.fix_1193792
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Sam Spilsbury Approve
MC Return Approve
Review via email: mp+170975@code.launchpad.net

Commit message

KWD: Fix compile errors with KDE 4.11.

The KWin developers made kdecorationbridge.h private.

See: http://lists.freedesktop.org/archives/compiz/2013-March/003479.html

(LP: #1193792)

Description of the change

KWD: Fix compile errors with KDE 4.11. (LP: #1193792)

The KWin developers made kdecorationbridge.h private.

See: http://lists.freedesktop.org/archives/compiz/2013-March/003479.html

To post a comment you must log in.
Revision history for this message
MC Return (mc-return) wrote :

Iven, thanks a lot for that. +1
Could you please "Set (a) commit message" also ?

I guess you've tested this fix ?

review: Needs Information
Revision history for this message
MC Return (mc-return) wrote :

Here:

25 + virtual QuickTileMode quickTileMode(void) const;

a whitespace between quickTileMode and ( is missing.

The style of kdecorationbridge.h is not really what Compiz uses, but I guess this is okay as
"35 +This file is part of the KDE project."... ;)

Revision history for this message
Iven Hsu (ivenvd) wrote :

Yes, I've tested this.

What do you mean by commit message? I've already written a bzr commit message, I think.

Revision history for this message
MC Return (mc-return) wrote :

> Yes, I've tested this.
>
Cool.

> What do you mean by commit message? I've already written a bzr commit message,
> I think.

Probably you did, but the main commit message for bzr has to be additionally added to the merge request, otherwise the merge will fail.
It is the green "+" button above, which says "Set commit message".

Revision history for this message
Iven Hsu (ivenvd) wrote :

> Probably you did, but the main commit message for bzr has to be additionally
> added to the merge request, otherwise the merge will fail.
> It is the green "+" button above, which says "Set commit message".

Thanks. I'm not so familiar with launchpad. So if I want to resubmit the proposal, should I push to a new branch?

Revision history for this message
MC Return (mc-return) wrote :

>
> Thanks. I'm not so familiar with launchpad. So if I want to resubmit the
> proposal, should I push to a new branch?

No, that was already perfect. You do not need to push a new branch.

If you want to update your branch (with the whitespace fix I posted above, for example), simply make your changes locally, then "bzr commit" and then "bzr push" again. This will update this branch with your new commit.

See examples of this here:
https://code.launchpad.net/~mc-return/compiz/compiz.merge-thumbnail-improvements/+merge/170548

Workflow is like this:
First propose a branch, then get a review with improvement suggestions, implement and commit those, push again to update the merge request, ...

(If you have additional questions, just ask)

lp:~ivenvd/compiz/compiz.fix_1193792 updated
3744. By Iven Hsu

Fix the coding-style issue with whitespace.

Revision history for this message
MC Return (mc-return) wrote :

Perfect. +1
Approve from me, but waiting for Sam to give this the final green light...
FYI: AFAIK trunk is frozen currently anyway, so do not worry if this might take a few days until it lands...

review: Approve
Revision history for this message
Sam Spilsbury (smspillaz) :
review: Approve
lp:~ivenvd/compiz/compiz.fix_1193792 updated
3745. By Iven Hsu

Move kdecorationbridge.h to the right place.

Revision history for this message
Iven Hsu (ivenvd) wrote :

Sorry, my fault. Mistakely added the header file to wrong folder. Should be fixed now.

Revision history for this message
MC Return (mc-return) wrote :

So you've tested this now and made sure you can run KDE 4.11 with Compiz as WM ?

Revision history for this message
Iven Hsu (ivenvd) wrote :

> So you've tested this now and made sure you can run KDE 4.11 with Compiz as WM
> ?

Yes.

Revision history for this message
MC Return (mc-return) wrote :

> > So you've tested this now and made sure you can run KDE 4.11 with Compiz as
> WM
> > ?
>
> Yes.

Approved :)

Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'kde/window-decorator-kde4/kdecorationbridge.h'
2--- kde/window-decorator-kde4/kdecorationbridge.h 1970-01-01 00:00:00 +0000
3+++ kde/window-decorator-kde4/kdecorationbridge.h 2013-06-25 07:12:24 +0000
4@@ -0,0 +1,115 @@
5+/*****************************************************************
6+This file is part of the KDE project.
7+
8+Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
9+
10+Permission is hereby granted, free of charge, to any person obtaining a
11+copy of this software and associated documentation files (the "Software"),
12+to deal in the Software without restriction, including without limitation
13+the rights to use, copy, modify, merge, publish, distribute, sublicense,
14+and/or sell copies of the Software, and to permit persons to whom the
15+Software is furnished to do so, subject to the following conditions:
16+
17+The above copyright notice and this permission notice shall be included in
18+all copies or substantial portions of the Software.
19+
20+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23+THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26+DEALINGS IN THE SOFTWARE.
27+******************************************************************/
28+
29+#ifndef KDECORATIONBRIDGE_H
30+#define KDECORATIONBRIDGE_H
31+
32+#include "kdecoration.h"
33+#include <QWidget>
34+
35+/**
36+ * @short Bridge class for communicating between decorations and KWin core.
37+ *
38+ * This class allows communication between decorations and KWin core while allowing
39+ * to keep binary compatibility. Decorations do not need to use it directly at all.
40+ */
41+class KDecorationBridge : public KDecorationDefines
42+{
43+public:
44+ virtual ~KDecorationBridge() {}
45+ virtual bool isActive() const = 0;
46+ virtual bool isCloseable() const = 0;
47+ virtual bool isMaximizable() const = 0;
48+ virtual MaximizeMode maximizeMode() const = 0;
49+ virtual QuickTileMode quickTileMode() const = 0;
50+ virtual bool isMinimizable() const = 0;
51+ virtual bool providesContextHelp() const = 0;
52+ virtual int desktop() const = 0;
53+ virtual bool isModal() const = 0;
54+ virtual bool isShadeable() const = 0;
55+ virtual bool isShade() const = 0;
56+ virtual bool isSetShade() const = 0;
57+ virtual bool keepAbove() const = 0;
58+ virtual bool keepBelow() const = 0;
59+ virtual bool isMovable() const = 0;
60+ virtual bool isResizable() const = 0;
61+ virtual NET::WindowType windowType(unsigned long supported_types) const = 0;
62+ virtual QIcon icon() const = 0;
63+ virtual QString caption() const = 0;
64+ virtual void processMousePressEvent(QMouseEvent*) = 0;
65+ virtual void showWindowMenu(const QRect &) = 0;
66+ virtual void showWindowMenu(const QPoint &) = 0;
67+ virtual void showApplicationMenu(const QPoint&) = 0;
68+ virtual bool menuAvailable() const = 0;
69+ virtual void performWindowOperation(WindowOperation) = 0;
70+ virtual void setMask(const QRegion&, int) = 0;
71+ virtual bool isPreview() const = 0;
72+ virtual QRect geometry() const = 0;
73+ virtual QRect iconGeometry() const = 0;
74+ virtual QRegion unobscuredRegion(const QRegion& r) const = 0;
75+ virtual WId windowId() const = 0;
76+ virtual void closeWindow() = 0;
77+ virtual void maximize(MaximizeMode mode) = 0;
78+ virtual void minimize() = 0;
79+ virtual void showContextHelp() = 0;
80+ virtual void setDesktop(int desktop) = 0;
81+ virtual void titlebarDblClickOperation() = 0;
82+ virtual void titlebarMouseWheelOperation(int delta) = 0;
83+ virtual void setShade(bool set) = 0;
84+ virtual void setKeepAbove(bool) = 0;
85+ virtual void setKeepBelow(bool) = 0;
86+ // not part of public API
87+ virtual int currentDesktop() const = 0;
88+ virtual QWidget* initialParentWidget() const = 0;
89+ virtual Qt::WFlags initialWFlags() const = 0;
90+ virtual void grabXServer(bool grab) = 0;
91+};
92+
93+class KDecorationBridgeUnstable
94+ : public KDecorationBridge
95+{
96+public:
97+ virtual bool compositingActive() const = 0;
98+ virtual QRect transparentRect() const = 0;
99+
100+ // Window tabbing
101+ using KDecorationBridge::caption;
102+ virtual QString caption(int idx) const = 0;
103+ virtual void closeTab(long id) = 0;
104+ virtual void closeTabGroup() = 0;
105+ virtual long currentTabId() const = 0;
106+ using KDecorationBridge::icon;
107+ virtual QIcon icon(int idx) const = 0;
108+ virtual void setCurrentTab(long id) = 0;
109+ using KDecorationBridge::showWindowMenu;
110+ virtual void showWindowMenu(const QPoint& pos, long id) = 0;
111+ virtual void tab_A_before_B(long A, long B) = 0;
112+ virtual void tab_A_behind_B(long A, long B) = 0;
113+ virtual int tabCount() const = 0;
114+ virtual long tabId(int idx) const = 0;
115+ virtual void untab(long id, const QRect& newGeom) = 0;
116+ virtual WindowOperation buttonToWindowOperation(Qt::MouseButtons button) = 0;
117+};
118+
119+#endif
120
121=== modified file 'kde/window-decorator-kde4/window.cpp'
122--- kde/window-decorator-kde4/window.cpp 2013-05-13 15:39:25 +0000
123+++ kde/window-decorator-kde4/window.cpp 2013-06-25 07:12:24 +0000
124@@ -226,6 +226,12 @@
125 return wInfo.actionSupported (NET::ActionMax);
126 }
127
128+KDecoration::QuickTileMode
129+KWD::Window::quickTileMode (void) const
130+{
131+ return QuickTileNone;
132+}
133+
134 KDecoration::MaximizeMode
135 KWD::Window::maximizeMode (void) const
136 {
137
138=== modified file 'kde/window-decorator-kde4/window.h'
139--- kde/window-decorator-kde4/window.h 2012-11-29 02:37:19 +0000
140+++ kde/window-decorator-kde4/window.h 2013-06-25 07:12:24 +0000
141@@ -71,6 +71,7 @@
142 virtual bool isCloseable (void) const;
143 virtual bool isMaximizable (void) const;
144 virtual MaximizeMode maximizeMode (void) const;
145+ virtual QuickTileMode quickTileMode (void) const;
146 virtual bool isMinimizable (void) const;
147 virtual bool providesContextHelp (void) const;
148 virtual int desktop (void) const;

Subscribers

People subscribed via source and target branches