Releasing mouse button outside panel 'close' window button removes keyboard focus from Dash & Hud

Bug #1021087 reported by Thomi Richards
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Unity
Fix Released
Medium
Brandon Schaefer
unity (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Running unity trunk (revno 2470), these steps:

1. open hud
2. move mouse over close button
3. press mouse btn 1
4. move mouse outside hud
5. release the mouse button 1

remove the keyboard focus from the hud, meaning that it's no longer possible to close it with the Escape key. The same thing happens with the Dash.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: unity 5.12-0ubuntu1.1
ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
Uname: Linux 3.2.0-26-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
CompizPlugins: [core,composite,opengl,compiztoolbox,decor,place,session,mousepoll,vpswitch,snap,grid,resize,gnomecompat,regex,imgpng,move,animation,workarounds,unitymtgrabhandles,wall,expo,fade,ezoom,scale,unityshell]
Date: Thu Jul 5 11:28:35 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
SourcePackage: unity
UpgradeStatus: Upgraded to precise on 2012-01-17 (169 days ago)

Related branches

Revision history for this message
Thomi Richards (thomir-deactivatedaccount) wrote :
Tim Penhey (thumper)
Changed in unity:
importance: Undecided → Medium
Revision history for this message
Thomi Richards (thomir-deactivatedaccount) wrote :

The bug is actually worse than this - clicking on any panel window button removes keyboard focus from the overlay.

That's fine if the overlay is being closed or maximised, but if the click doesn't result in one of these actions then there's a problem.

For example:

1) open hud
2) type 'hello'
3) click minimize button
4) type 'world'.

Expected result is that the Hud has 'hello world' in it.
Actual result is that it has 'Hello' in it.

Tim Penhey (thumper)
Changed in unity:
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unity (Ubuntu):
status: New → Confirmed
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

Well what casues it:

nux::WindowCompositor.cpp:503
SetKeyFocusArea(mouse_over_area_);

When you click on the panel it is not the current owner of focus, so it thinks you want to switch focus to the panel. So it steals it from the hud/dash and gives it to the panel...but the panel can't do anything with it soo you kind of get stuck.

The solution is to figure out how to block keyboard focus from the panels when the overlay is open! (hopefully a fix soon).

Changed in unity:
assignee: nobody → Brandon Schaefer (brandontschaefer)
status: Triaged → In Progress
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Fix committed into lp:unity at revision 2477

Changed in unity:
milestone: none → 6.0
status: In Progress → Fix Committed
Changed in unity:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (5.8 KiB)

This bug was fixed in the package unity - 6.0.0-0ubuntu1

---------------
unity (6.0.0-0ubuntu1) quantal-proposed; urgency=low

  [ Didier Roche ]
  * debian/rules, debian/control, debian/unity-autopilot.install:
    - install new unity-autopilot package, containing autopilot bindings and
      test for Unity
    - add some python build-dep for executing setup.py
    - use dh_python2 and add some python:Depends dep for automatic python
      version detection
  * debian/control:
    - remove gnome-desktop dependency: not needed upstream anymore
    - unity Breaks older lenses due to path change
    - remove libgdu in build-dep
  * debian/libunity-core-6.0-5.install, debian/libunity-core-6.0-dev.install,
    debian/control:
    - version bump in libunity-core, change soname

  [ Matthieu Baerts (matttbe) ]
  * Update apport hook for python3 ; thanks to Edward Donovan (LP: #1013171)

  [ Łukasz 'sil2100' Zemczak ]
  * New upstream release.
    - compiz crashed with SIGSEGV in get_current_slide() from
      unity::BGHash::OnSlideshowTransition() (LP: #889625)
    - Unity is visible on top of fullscreen apps (LP: #734908)
    - App icon on the Unity Launcher lost track of running instance
      (LP: #772063)
    - unity crashed with NameError in reset_unity_compiz_profile(): global
      name 'GError' is not defined (LP: #778470)
    - compiz crashed with SIGSEGV in CompWindow::id() from getPaintMask()
      [compizminimizedwindowhandler.h] from unity::UnityWindow::glPaint()
      (LP: #851982)
    - HUD - Formatting of text in the auto-complete is wrong (LP: #939436)
    - [regression] Launcher is silent to screen reader users (LP: #949448)
    - still some accent issues with unity/nux (LP: #950740)
    - [regression] [precise] 3D apps run much slower under Unity (LP: #987304)
    - No launcher icon or Alt+Tab entry for Gimp windows (LP: #995916)
    - Locked smuxi launcher icon does not indicate smuxi running status
      (LP: #999820)
    - When number of workspaces is set to 1, the Spread no longer works
      (LP: #996604)
    - Much slower OpenGL frame rates with unityshell loaded, than plain compiz
      (LP: #988079)
    - Port to libudisks2 (LP: #1012000)
    - Desktop, Launcher and menu bar still visible when screen locked
      (LP: #886605)
    - Searching in the HUD freezes unity (LP: #1016239)
    - Dragged icons rendered under dash (LP: #1021541)
    - Regression in Launcher keyboard navigation (with Alt+F1) (LP: #1021549)
    - Unity dash is is much slower/laggy after revision 2469. (LP: #1021665)
    - Dash and Launcher - As soon as a user starts dragging a file from the
      Dash, there is a 'flicker' before the Launcher icons that are valid drop
      receptacles re-saturate (LP: #863230)
    - Dash - when a file is dragged from the Dash (Dash home, file lens, or
      music lens) and dropped on a Launcher icon, the Dash should
      automatically close (LP: #865168)
    - Refreshing active blur makes the dash painfully slow (LP: #874230)
    - Open dash, press Alt+f1 - dash remains open (LP: #919209)
    - application reopens itself when last instance is closed from
      windows/application switcher (LP: #926406)
    - HUD D...

Read more...

Changed in unity (Ubuntu):
status: Confirmed → Fix Released
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.