for detailed the term Unity in Summary section means unityshell 
component in unity.

1. BIOS/HW sends Super+P scan code when user press function key in 
laptop and then convert to X key event
    by kernel and X server to the Compiz.
2. unityshell is  a Compiz plugin and defines a lot of action callbacks 
for specified keys.
    so Compiz will pass the X key event to all plugins for trigger the 
key event handling (
    PrivateScreen::handleActionEvent -> 
PrivateScreen::triggerKeyPressBindings in $compiz_src/src/event.cpp)
3. if the keycode and modifier defines in the Action is as the same as 
the keycode and modifier in X event, the Action callback will be 
executed, then Compiz thinks this X event is handled. for example, 
action callback for Super key is to show Unity Launcher.
4. if Compiz thinks this X event is handled it will stop to handling X 
event if private screen does not grab any devices. if this X event is 
not handled , Compiz then thinks it maight be Focus-In, Focus-Out, etc, 
and continue trigger the related handling function.

so far, there is an question comes up in my mind, why the action callback of 
Super key which is defined in unitshell 
will be triggered when user press Super+p and this symptom should not be 
happened. (the return value is True of PrivateScreen::triggerKeyPressBindings 
or PrivateScreen::triggerKeyReleaseBindings in $compiz_src/event.cpp)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/950160

Title:
  Unity blocks other programs from binding globally to Super+* or Alt+*
  (* = any key)

Status in Gnome Settings Daemon:
  Fix Released
Status in OEM Priority Project:
  Confirmed
Status in OEM Priority Project precise series:
  Confirmed
Status in Unity:
  Confirmed
Status in “compiz” package in Ubuntu:
  Confirmed
Status in “gnome-settings-daemon” package in Ubuntu:
  Fix Committed
Status in “unity” package in Ubuntu:
  Confirmed
Status in “compiz” source package in Precise:
  Confirmed
Status in “gnome-settings-daemon” source package in Precise:
  Fix Committed
Status in “unity” source package in Precise:
  Confirmed
Status in “compiz” source package in Quantal:
  Confirmed
Status in “gnome-settings-daemon” source package in Quantal:
  Fix Committed
Status in “unity” source package in Quantal:
  Confirmed

Bug description:
  WORKAROUND 1:
  Run CCSM and under "Ubuntu Unity Plugin" change the key binding for "Key to 
show the launcher" to something else (e.g. Super+U). Then log out and in again. 
As long as no compiz plugin is bound to the single Super key any more, compiz 
will no longer block other apps from binding to Super+other_keys.

  WORKAROUND 2:
  1. Write a script or figure out the command to do the action you want.
  2. Run ccsm.
  3. Enable the "Commands" plugin
  4. In the Commands settings, fill in the command line you want and bind it to 
key Super+P.
  Now Unity will run your specified command on Super+P, but still handle the 
Super key as usual.

  [Precise SRU Justification]

  [Impact] Any shortcut with Super, Hyper, Meta virtual modifiers does
  not work

  [Test Case] Attach an external monitor to the laptop, press Super+P,
  it should do the video switch as this function is implemented in
  gnome-settings-daemon.  A patch in comment #12 is now accepted
  upstream and a test package with that patch is available in comment
  #14. From the test result, the patch at least fixes Unity-2D.

  [Regression Potential] The patch is accepted upstream and is also
  cherry-picked in the gnome-3-4 branch of g-s-d git tree. g-s-d version
  in Precise is 3.4.2.  So the risk of regression should be rather low.

  [Other] I prepare a debdiff in comment #31 for convenience. I hope the
  patch can be in both Quantal and Precise.

  ORIGINAL DESCRIPTION:
  Using : 12.04 Beta 1, updated. and Unity.

  In 11.10 clicking:

  - the function key (Fn) + (F1) allowed to switch between the laptop
  screen and the external monitor.

  After upgrading to 12.04 this no more works and instead I get an
  unexpected behavior: see the video.

  https://www.youtube.com/watch?v=-vEnrV5TwXo

  System: Dell XPS 15 L502X

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: ubuntu-sso-client 2.99.90-0ubuntu2
  ProcVersionSignature: Ubuntu 3.2.0-18.28-generic 3.2.9
  Uname: Linux 3.2.0-18-generic x86_64
  ApportVersion: 1.94.1-0ubuntu1
  Architecture: amd64
  Date: Thu Mar  8 19:18:42 2012
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
  PackageArchitecture: all
  SourcePackage: ubuntu-sso-client
  UpgradeStatus: Upgraded to precise on 2012-03-02 (6 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-settings-daemon/+bug/950160/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to