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

Subscribers

People subscribed via source and target branches