Merge lp:~davidgomes/unity/fix-for--823353 into lp:unity

Proposed by David Gomes
Status: Merged
Merge reported by: Neil J. Patel
Merged at revision: not available
Proposed branch: lp:~davidgomes/unity/fix-for--823353
Merge into: lp:unity
Diff against target: 12 lines (+1/-1)
1 file modified
plugins/unityshell/src/WindowButtons.cpp (+1/-1)
To merge this branch: bzr merge lp:~davidgomes/unity/fix-for--823353
Reviewer Review Type Date Requested Status
Neil J. Patel (community) Approve
Review via email: mp+70917@code.launchpad.net

Description of the change

I can't test this, but I'm pretty sure I fixed the bug #823353.

This because when the mouse is inside and being pressed inside one of the windows buttons, the icon of the button doesn't change to "Pressed".

To post a comment you must log in.
Revision history for this message
Neil J. Patel (njpatel) wrote :

You have indeed! Thank you!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/unityshell/src/WindowButtons.cpp'
2--- plugins/unityshell/src/WindowButtons.cpp 2011-08-08 20:19:16 +0000
3+++ plugins/unityshell/src/WindowButtons.cpp 2011-08-09 16:28:26 +0000
4@@ -61,7 +61,7 @@
5
6 GfxContext.PushClippingRectangle(geo);
7
8- if (HasMouseFocus())
9+ if (HasMouseFocus() && IsMouseInside())
10 {
11 tex = _pressed_tex;
12 }