← Back to team overview

dx-packages team mailing list archive

[Bug 969039] Re: HUD appears when tapping Alt+Left very quickly

 

Yay found the problem....

So. Compiz does indeed grab all the keys, which is why its hard to
reproduce. The problem is for some reason in unityshell.cpp when alt tab
terminates it ends up eventually doing XUngrabKey() on all the arrow
keys!! So to correctly reproduce this:

1) Alt+Tab (just open the switcher and close it)
2) Attempt a alt+<arrow_key>

The offending code is here:
bool UnityScreen::altTabTerminateCommon(....)
{
  ....
  screen->removeAction(&optionGetAltTabRight ());
  screen->removeAction(&optionGetAltTabDetailStart ());
  screen->removeAction(&optionGetAltTabDetailStop ());
  screen->removeAction(&optionGetAltTabLeft ());
  ...
}

So before I push a branch i have to track down what that code is
for...or what it was really fixing (don't want another regression).

It ends up ungrabbing these keycodes:

111 <- Up arrow
113 <- Left arrow
114 <- Right arrow
116 <- Down arrow

Ill attempt to get a branch out for this next week!

** Changed in: compiz-core
       Status: Confirmed => Invalid

** Changed in: compiz
       Status: Confirmed => Invalid

** Changed in: compiz (Ubuntu)
       Status: Confirmed => Invalid

** Also affects: unity (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: unity (Ubuntu)
       Status: New => In Progress

** Changed in: unity (Ubuntu)
   Importance: Undecided => High

** Changed in: unity (Ubuntu)
     Assignee: (unassigned) => Brandon Schaefer (brandontschaefer)

** Changed in: unity
    Milestone: None => 7.1.1

** Changed in: unity
       Status: Confirmed => In Progress

** Changed in: unity-distro-priority
       Status: New => In Progress

** Changed in: unity-distro-priority
       Status: In Progress => Confirmed

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to unity in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/969039

Title:
  HUD appears when tapping Alt+Left very quickly

Status in Compiz:
  Invalid
Status in Compiz Core:
  Invalid
Status in Unity:
  In Progress
Status in Unity Distro Priority:
  Confirmed
Status in “compiz” package in Ubuntu:
  Invalid
Status in “unity” package in Ubuntu:
  In Progress

Bug description:
  When I press Alt plus any cursor key in quick succession, the HUD
  erroneously appears. This steals focus and disrupts the workflow quite
  severely. This was much worse in earlier Unity versions, 5.8 already
  made this a lot better. But this case still remains for me.

  When I leave some time (0.5 s or so) between pressing Alt and the
  cursor key, this does not happen. But when pressing them almost at the
  same time, the bug happens. I can reproduce this 100%, so feel free to
  ask for any additional debugging info.

  The problem is not that I hit the Cursor key before alt. This proves
  it:

  $ xev | grep -A2 ^KeyPress
  KeyPress event, serial 36, synthetic NO, window 0x3800001,
      root 0xbe, subw 0x0, time 17590219, (112,69), root:(113,867),
      state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
  --
  KeyPress event, serial 36, synthetic NO, window 0x3800001,
      root 0xbe, subw 0x0, time 17590299, (112,69), root:(113,867),
      state 0x8, keycode 113 (keysym 0xff51, Left), same_screen YES,

  and I get the HUD.

  It does not matter which application/window is focussed. It happens in
  gnome-terminal, Firefox, or the blank desktop all alike.

  It does not happen with other Alt key combinations, just with the
  cursor keys. I also saw this happen quite a lot with Ctrl+Alt
  (controlling screen grab in KVM) or Ctrl+Alt+Cursor (changing
  workspaces), but I cannot reliably reproduce those.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: unity 5.8.0-0ubuntu2
  ProcVersionSignature: Ubuntu 3.2.0-20.33-generic 3.2.12
  Uname: Linux 3.2.0-20-generic x86_64
  ApportVersion: 1.95-0ubuntu1
  Architecture: amd64
  CompizPlugins: [core,composite,opengl,compiztoolbox,decor,vpswitch,snap,mousepoll,resize,place,move,wall,grid,regex,imgpng,session,gnomecompat,animation,fade,unitymtgrabhandles,workarounds,scale,expo,ezoom,unityshell]
  Date: Fri Mar 30 12:00:47 2012
  EcryptfsInUse: Yes
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110831)
  ProcEnviron:
   TERM=xterm
   PATH=(custom, user)
   LANG=de_DE.UTF-8
   SHELL=/bin/bash
  SourcePackage: unity
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/compiz/+bug/969039/+subscriptions