Clicking panel should raise maximised window with raise-on-click disabled

Bug #880672 reported by James Pharaoh
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Unity
Confirmed
Wishlist
Unassigned
unity (Ubuntu)
Confirmed
Wishlist
Unassigned

Bug Description

While raise-on-click prevents general clicks from raising a window, it should still be raised on certain clicks. This bug deals with clicks to the titlebar of a maximised window. A click (not a drag) should cause the window to be raised, which is the behaviour of clicking a maximised window's titlebar in metacity, and the behaviour of clicking an unmaximised window's titlebar in unity normally.

I have already implemented this and will submit code shortly...

Related branches

Revision history for this message
James Pharaoh (jamespharaoh) wrote :
Revision history for this message
Omer Akram (om26er) wrote :

are you talking bug 864708 ?

Changed in unity:
status: New → Opinion
status: Opinion → Incomplete
Revision history for this message
James Pharaoh (jamespharaoh) wrote :

I didn't see this bug because I am trying to fix behaviours specific to raise-on-click. I've applied the patch and it still fails miserably for me.

My changes are intended to fix the behaviour for people who use focus-follows-mouse with raise-on-click disabled. The following behaviour is what I expect:

- Click on title bar raises the maximised window
- Drag title bar moves the maximised window, without raising it

The solution accepted for the previous bug fails because dragging the title bar both raises and activates that window. We need to make sure that the window is only raised and activated when the user spdecificly clicks rather than drags if raise-on-click is disabled.

My patch will probably need a little modification to apply to the upstream unity and ubuntu head where this patch has been applied. For a start, I've modified the existing OnMaximizedGrabStart function whereas the patch adds a new OnMouseClicked. I have also removed a call to WindowManager::Activate in OnMaximizedGrabMove. The patch uses Raise instead of Activate although I'm not sure what the impact of this is.

The biggest difference in my code is that I've created a new class called Behaviour and passed this through various constructors into PanelMenuView. This provides an interface for querying the raise-on-click setting, and can of course be extended for any other settings in the future.

So anyway, in my case there is definitely still a problem and it seems sensible to manage it with a separate bug. The description is probably a little confusing.

What should I do now? Do you accept the intention of the changes I am making here? I can create a new version against unity upstream if that's what is required.

To be honest I am finding loads of problems with my "unusual" setup of focus-follows-mouse and raise-on-click disabled. I am probably going to try and drive an effort to tackle all of these issues together over the next few weeks.

Revision history for this message
Omer Akram (om26er) wrote :

You need to propose this solution to lp:unity with the debian/changelog stuff. Once its accepted by unity team, we can look into SRU though as FFM is not the default option I see a little chance for the SRU, thx.

Changed in unity:
status: Incomplete → New
Changed in unity:
assignee: nobody → Focus Follows Mouse (focus-follows-mouse)
Changed in unity (Ubuntu):
assignee: nobody → Focus Follows Mouse (focus-follows-mouse)
Changed in unity:
assignee: Focus Follows Mouse (focus-follows-mouse) → Focus Follows Mouse Bugs (focus-follows-mouse-bugs)
Changed in unity (Ubuntu):
assignee: Focus Follows Mouse (focus-follows-mouse) → Focus Follows Mouse Bugs (focus-follows-mouse-bugs)
tags: added: focus-follows-mouse
Omer Akram (om26er)
Changed in unity:
importance: Undecided → Wishlist
status: New → Confirmed
Changed in unity (Ubuntu):
importance: Undecided → Wishlist
status: New → Confirmed
Omer Akram (om26er)
Changed in unity:
assignee: Focus Follows Mouse Bugs (focus-follows-mouse-bugs) → nobody
Changed in unity (Ubuntu):
assignee: Focus Follows Mouse Bugs (focus-follows-mouse-bugs) → nobody
Revision history for this message
Alex Baggott (alex-baggott) wrote :

As part of the big bug review for 16.04 LTS, I have tested this on 15.10 and the bug is still there.

tags: added: desktop-bugscrub-triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.