Panel Titlebar double click is emitted for any mouse button
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Unity |
Fix Released
|
Low
|
Marco Trevisan (Treviño) | ||
| unity-2d |
Fix Committed
|
Low
|
Unassigned | ||
| unity (Ubuntu) |
Fix Released
|
Low
|
Marco Trevisan (Treviño) | ||
| Precise |
Fix Released
|
Undecided
|
Unassigned | ||
| unity-2d (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
| Precise |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
[Test Case]
1. Run any maximize-able application
2. Maximize the window
3. Double click the panel titlebar with the right mouse button
-> Nothing should happen, the window should remain maximized
4. Double click the panel titlebar with the left mouse button
-> The window should restore itself
[Regression Potential]
No regression potential that we can think of, trivial change of adding one 'if'.
Original description:
We can double click the panel titlebar to restore a maximized window. However, this happens with any mouse button! Unity lets me double left click or double middle click to the same effect. This is a bit of a problem if I feel like paging through maximized windows really quickly with a middle click.
Usually, titlebar double click only responds to a double left click, so we should stick to that for consistency.
Related branches
- Didier Roche-Tolomelli: Approve
-
Diff: 423 lines (+180/-44) 8 files modifiedapisrc/PanelMenuView.cpp (+78/-42)
src/PanelMenuView.h (+5/-0)
src/PanelTitlebarGrabAreaView.cpp (+6/-0)
src/PanelTitlebarGrabAreaView.h (+1/-0)
src/PluginAdapter.cpp (+60/-0)
src/PluginAdapter.h (+4/-0)
src/WindowManager.cpp (+21/-1)
src/WindowManager.h (+5/-1)
- Neil J. Patel (community): Approve
- Jason Smith (community): Approve
- Gord Allott (community): Approve
-
Diff: 1499 lines (+470/-231) 12 files modifiedapiplugins/unityshell/src/PanelIndicatorsView.cpp (+55/-41)
plugins/unityshell/src/PanelIndicatorsView.h (+13/-1)
plugins/unityshell/src/PanelMenuView.cpp (+146/-86)
plugins/unityshell/src/PanelMenuView.h (+9/-7)
plugins/unityshell/src/PanelTitlebarGrabAreaView.cpp (+35/-33)
plugins/unityshell/src/PanelTitlebarGrabAreaView.h (+11/-10)
plugins/unityshell/src/PanelView.cpp (+20/-9)
plugins/unityshell/src/PanelView.h (+3/-0)
plugins/unityshell/src/PluginAdapter.cpp (+33/-1)
plugins/unityshell/src/WindowButtons.cpp (+14/-2)
plugins/unityshell/src/WindowManager.cpp (+5/-1)
services/panel-service.c (+126/-40)
- Gerry Boland: Pending requested
-
Diff: 28 lines (+8/-2) 2 files modifiedapipanel/applets/appname/appnameapplet.cpp (+4/-2)
tests/manual-tests/panel.txt (+4/-0)
- Adds a doubleleftclick signal for PanelTitlebarGrabArea Edit (1.7 KiB, text/plain)
Okay, this is a little weird: GetEventButton returns 1 for both a left and a right click in our RecvMouseDouble
I'm attaching a patch that at least solves the middle clicking issue, though.
@Dylan, can you please merge you work with the proposed branch? I think all this change in one can make sense :)
The doubleclick event is basically broken right now in nux. You should maybe have a look at the double click connect I've hacked in src/PanelTitleb
Does it make sense? Do not hesitate if you need further help ;)
Not that from my tests the lp:~dylanmccall/unity/panel-drag-frontmost-maximized branch doesn't fix the issue despite the specific code for that. Leaving the bug opened so.
Oops, did I mark it fixed in that branch? I meant to just link it to this bug report :)
Indeed, the earlier comment is still the case. For some reason, nux gives us the same event button (1) for both a left click and a right click. I'm probably missing something (or Unity's double click code is being funny), because surely the launcher is able to discern left from right...
Please note that this bug could not be trivial for Unity-2D because actually it doesn't react to any double click. Since we need to keep the Unity-2D features syncronized with Unity, I think we should add this feature to Unity-2D too.
Andrea, thank you for organizing but I don't think Unity-2d has a relation to this. It will never experience the bug because it'll be going through Qt for the double click event. The lack of double click itself is a separate issue (bug #661049).
this issue is not fixed in Oneiric
This "any mouse button triggers an action" problem affects other bits of unity too. I reported bug #758110 about the titlebar, which is now indeed fixed, but there are more instances of this. The biggest problem this causes is when one is using a touchpad with two-finger vertical and horizontal scrolling on, where attempting to scroll up and down may send events for buttons 6 and 7 if the drag is not exactly vertical (which it almost never is).
The problems I am aware of are:
- Panel indicator menus can be opened with buttons 6 and 7. This means that using the "scrollwheel" on the sound menu to modify the sound volume may pop the menu open, where the scrollwheel action is inhibited.
- Items displayed in unity lenses may be opened with buttons 6 or 7, so scrolling over a list of many items risks opening any one of them that happens to fall under the mouse pointer.
Andrea are you still working on this? I see you've got a branch you a Merge Request was never made out of it
Removing Andrea from assignee since he didn't answer my question in a month
Hello Dylan, or anyone else affected,
Accepted unity-2d into precise-proposed. The package will build now and be available at http://
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
Test-case works as expected.
removed: verification-needed
This bug was fixed in the package unity-2d - 5.14.0-0ubuntu1
---------------
unity-2d (5.14.0-0ubuntu1) precise-proposed; urgency=low
* New upstream release (LP: #1060262):
- [Launcher] [Multi-monitor] Removing a non running app tile from a
launcher should remove it from all (LP: #988739)
- Panel Titlebar double click is emitted for any mouse button (LP: #736491)
- Launcher does not hide if shown while dragging a file (LP: #1002308)
- icon isn't reset when clearing the search query (LP: #973225)
- Issue when ejecting busy device from the Unity 2D Shell (LP: #997786)
- Sticky edges don't work in RTL (LP: #984092)
- pips are not correctly updated when plugin in a second monitor
(LP: #1003943)
- [dash] Unable to maximize (LP: #918648)
- all panels have same window focus on multiple monitors unity2d
(LP: #930147)
- Dash will not open files under Greek folders (LP: #1002710)
- Launcher does not respond to changes in icon theme (LP: #605475)
- [panel] Invisible items in systray (LP: #703389)
- [panel] Ignores "enabled" property on top-level menus (LP: #850017)
* Reverted some quantal-specific commits which are no longer relevant
-- Lukasz 'sil2100' Zemczak <email address hidden> 2012年10月30日 09:59:49 +0100
The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.