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 modifiedsrc/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 modifiedplugins/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 modifiedpanel/applets/appname/appnameapplet.cpp (+4/-2)
tests/manual-tests/panel.txt (+4/-0)
Changed in unity: | |
status: | New → Confirmed |
Changed in unity (Ubuntu): | |
status: | New → Confirmed |
Changed in unity: | |
importance: | Undecided → Low |
Changed in unity (Ubuntu): | |
importance: | Undecided → Low |
tags: | added: patch |
Changed in unity: | |
assignee: | nobody → Unity Community Hackers (unity-community-hackers) |
Changed in unity: | |
assignee: | Unity Community Hackers (unity-community-hackers) → Marco Trevisan (Treviño) (3v1n0) |
Changed in unity (Ubuntu): | |
assignee: | nobody → Marco Trevisan (Treviño) (3v1n0) |
Changed in unity: | |
status: | Confirmed → In Progress |
Changed in unity (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in unity-2d: | |
assignee: | nobody → Andrea Grandi (andreagrandi) |
status: | New → In Progress |
Changed in unity-2d: | |
importance: | Undecided → Low |
Changed in unity: | |
milestone: | none → 4.18.0 |
Changed in unity-2d (Ubuntu): | |
status: | New → In Progress |
Changed in unity-2d: | |
assignee: | nobody → Albert Astals Cid (aacid) |
status: | Triaged → In Progress |
Changed in unity-2d: | |
status: | In Progress → Fix Committed |
milestone: | none → 5.14 |
description: | updated |
Changed in unity (Ubuntu Precise): | |
status: | New → Fix Released |
Changed in unity-2d: | |
milestone: | 5.14 → 5.12.1 |
description: | updated |
Changed in unity-2d: | |
milestone: | 5.12.1 → 5.14 |
Changed in unity-2d (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in unity-2d: | |
assignee: | Albert Astals Cid (aacid) → nobody |
Okay, this is a little weird: GetEventButton returns 1 for both a left and a right click in our RecvMouseDouble Click function. Is that normal?
I'm attaching a patch that at least solves the middle clicking issue, though.