Merge compiz:panel-focus into compiz:master

Proposed by Alberts Muktupāvels
Status: Merged
Approved by: Dmitry Shachnev
Approved revision: c9849bd0319b720e06da38db4fde0b450659af07
Merged at revision: 8261e512e4cf9d7bf22bf24a29b3a41f765c0774
Proposed branch: compiz:panel-focus
Merge into: compiz:master
Diff against target: 12 lines (+1/-1)
1 file modified
src/event.cpp (+1/-1)
Reviewer Review Type Date Requested Status
Compiz Maintainers Pending
Review via email: mp+428301@code.launchpad.net

Commit message

event: use correct window when deciding if it should appear focused

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/src/event.cpp b/src/event.cpp
2index 82fd49e..9e67a9e 100644
3--- a/src/event.cpp
4+++ b/src/event.cpp
5@@ -2277,7 +2277,7 @@ static const unsigned short _NET_WM_STATE_TOGGLE = 2;
6 }
7 }
8
9- active->changeState (active->focused () || (w->type () & APPEARS_FOCUSED_MASK) ?
10+ active->changeState (active->focused () || (active->type () & APPEARS_FOCUSED_MASK) ?
11 active->state () | CompWindowStateFocusedMask :
12 active->state () & ~CompWindowStateFocusedMask);
13

Subscribers

People subscribed via source and target branches