Merge lp:~hikiko/compiz/0.9.11-fix-1245886 into lp:compiz/0.9.11

Proposed by Eleni Maria Stea
Status: Merged
Approved by: Stephen M. Webb
Approved revision: 3799
Merged at revision: 3798
Proposed branch: lp:~hikiko/compiz/0.9.11-fix-1245886
Merge into: lp:compiz/0.9.11
Diff against target: 14 lines (+4/-0)
1 file modified
plugins/decor/src/decor.cpp (+4/-0)
To merge this branch: bzr merge lp:~hikiko/compiz/0.9.11-fix-1245886
Reviewer Review Type Date Requested Status
Stephen M. Webb Approve
PS Jenkins bot (community) continuous-integration Approve
MC Return Approve
Review via email: mp+193063@code.launchpad.net

Commit message

It fixes the bug #1245886. In DecorScreen::handleEvent compiz shouldn't try to handle any events if there's no active window yet.

Description of the change

It fixes the bug #1245886. In DecorScreen::handleEvent compiz shouldn't try to handle any events if there's no active window yet.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
MC Return (mc-return) wrote :

+1.

Are the changes (additional brackets) in src/window.cpp really needed ?

So adding

if (!activeWindow)
    return;

to decor.cpp, DecorScreen::handleEvent () would be enough imho...

The commit message could be nicer also ;)

review: Approve
Revision history for this message
Eleni Maria Stea (hikiko) wrote :

I got a warning for the branches when I performed static analysis, that's why I added them but they don't really fix anything, so, I can remove them. Sorry for the short commit message :)

Revision history for this message
Eleni Maria Stea (hikiko) wrote :

sorry, :s/branches/brackets :)

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

I cannot test this properly at the moment, hope someone else will do that soonish...

Thanks for improving the commit message.

lp:~hikiko/compiz/0.9.11-fix-1245886 updated
3799. By Eleni Maria Stea

removed not really necessary brackets to have a cleaner diff

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Stephen M. Webb (bregma) wrote :

Good.

review: Approve
Revision history for this message
Christopher Townsend (townsend) wrote :

This change is unfortunately causing a bad side effect that all windows are "hung" when restarting Compiz and rendering the desktop unusable. I'm not sure how to properly fix this, so in the mean time, I'm going to propose another branch that reverts this change.

Revision history for this message
Eleni Maria Stea (hikiko) wrote :

I didn't see any issue but maybe I was just too lucky! I will test it a few more times! If you only get the crash after my change we should definately revert the branch! :s Sorry!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/decor/src/decor.cpp'
2--- plugins/decor/src/decor.cpp 2013-09-06 16:15:55 +0000
3+++ plugins/decor/src/decor.cpp 2013-10-29 16:15:27 +0000
4@@ -2442,6 +2442,10 @@
5 DecorScreen::handleEvent (XEvent *event)
6 {
7 Window activeWindow = screen->activeWindow ();
8+ if(!activeWindow) {
9+ return;
10+ }
11+
12 CompWindow *w;
13
14 switch (event->type) {

Subscribers

People subscribed via source and target branches