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

Proposed by David Gomes on 2011-08-09
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) 2011-08-09 Approve on 2011-08-10
Review via email:

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.
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 @@
6 GfxContext.PushClippingRectangle(geo);
8- if (HasMouseFocus())
9+ if (HasMouseFocus() && IsMouseInside())
10 {
11 tex = _pressed_tex;
12 }