<ctrl> key now known as <primary> which breaks keyboard shortcuts

Bug #936840 reported by Alan Pope 🍺🐧🐱 🦄
146
This bug affects 28 people
Affects Status Importance Assigned to Milestone
Compiz
Fix Released
Undecided
Sam Spilsbury
0.9.8
Won't Fix
Undecided
Unassigned
Compiz Configuration Library
Fix Committed
High
Sam Spilsbury
Unity Distro Priority
Fix Committed
High
Unassigned
compiz (Ubuntu)
Fix Released
Undecided
Unassigned
libcompizconfig (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Previously we used to call the control key <Control> but this has now been changed in GNOME so when the control key is pressed <primary> is returned. In compiz we set keyboard shortcuts as (for example) <Control><Alt><Left>.

When changing settings in gnome-control-center (for example) we will set <primary> but in compiz we're looking for <control> which breaks keyboard actions.

This also affects CCSM for setting keyboard shortcuts.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: compiz-core 1:0.9.7.0~bzr2995-0ubuntu4
ProcVersionSignature: Ubuntu 3.2.0-16.25-generic 3.2.6
Uname: Linux 3.2.0-16-generic x86_64
.tmp.unity.scope.cities: Error: [Errno 21] Is a directory: '/tmp/unity-scope-cities'
.tmp.unity.support.test.0:

ApportVersion: 1.91-0ubuntu1
Architecture: amd64
CompizPlugins: [core,composite,opengl,decor,mousepoll,vpswitch,regex,animation,snap,expo,move,compiztoolbox,place,grid,imgpng,gnomecompat,wall,ezoom,workarounds,resize,fade,unitymtgrabhandles,scale,session,unityshell]
CompositorRunning: compiz
Date: Mon Feb 20 09:19:51 2012
DistUpgraded: Fresh install
DistroCodename: precise
DistroVariant: ubuntu
DkmsStatus:
 virtualbox, 4.1.8, 3.2.0-15-generic, x86_64: installed
 virtualbox, 4.1.8, 3.2.0-16-generic, x86_64: installed
EcryptfsInUse: Yes
GraphicsCard:
 Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0126] (rev 09) (prog-if 00 [VGA controller])
   Subsystem: Lenovo Device [17aa:21da]
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120203)
MachineType: LENOVO 4287CTO
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-16-generic root=UUID=86ea7114-6b69-4161-b91c-44ccb7fcfd67 ro quiet splash vt.handoff=7
SourcePackage: compiz
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/01/2011
dmi.bios.vendor: LENOVO
dmi.bios.version: 8DET56WW (1.26 )
dmi.board.asset.tag: Not Available
dmi.board.name: 4287CTO
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr8DET56WW(1.26):bd12/01/2011:svnLENOVO:pn4287CTO:pvrThinkPadX220:rvnLENOVO:rn4287CTO:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 4287CTO
dmi.product.version: ThinkPad X220
dmi.sys.vendor: LENOVO
version.compiz: compiz 1:0.9.7.0~bzr2995-0ubuntu4
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.30-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 8.0~rc2-0ubuntu5
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 8.0~rc2-0ubuntu5
version.xserver-xorg-core: xserver-xorg-core 2:1.11.4-0ubuntu3
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.6.99.901+git20120126-0ubuntu2
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.99~git20111219.aacbd629-0ubuntu2
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.17.0-1ubuntu4
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20111201+b5534a1-1build2

Related branches

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :
Changed in compiz-core:
milestone: none → 0.9.7.0
Changed in unity-distro-priority:
status: New → Fix Committed
importance: Undecided → High
Changed in compiz-core:
assignee: nobody → Łukasz Zemczak (sil2100)
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

This bug seems fixed in the precise libcompizconfig package 0.9.7.0~bzr428-0ubuntu3 with the included patch 02_primary_is_ctrl.patch. It adds <Primary> as ControlMask and it generally fixes the problem altogether.

I also did the same thing for compiz-core itself - I think it would be useful to have there too. But I'm not sure if its something that should be added to the compiz-core trunk or just stay as an ubuntu package patch. So I'm including it here as a patch for now.

affects: libcompizconfig → compiz-libcompizconfig
no longer affects: compiz-libcompizconfig
Changed in libcompizconfig (Ubuntu):
status: New → Fix Committed
Changed in compiz-core:
status: New → In Progress
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Add <Primary> as ControlMask, along with <Control>" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Changed in compiz-core:
status: In Progress → Invalid
Changed in compiz (Ubuntu):
assignee: nobody → Łukasz Zemczak (sil2100)
Changed in compiz-core:
assignee: Łukasz Zemczak (sil2100) → nobody
affects: compiz-core → compiz-libcompizconfig
Changed in compiz-libcompizconfig:
assignee: nobody → Sam Spilsbury (smspillaz)
importance: Undecided → High
milestone: 0.9.7.0 → none
status: Invalid → In Progress
Changed in libcompizconfig (Ubuntu):
status: Fix Committed → Invalid
Changed in compiz (Ubuntu):
status: New → Invalid
Changed in libcompizconfig (Ubuntu):
status: Invalid → Confirmed
Changed in compiz (Ubuntu):
assignee: Łukasz Zemczak (sil2100) → nobody
Revision history for this message
Craig Weber (weberc2) wrote :

Hello, I'm experiencing this problem in Ubuntu 11.10... I did a package update this morning, and only today have I had problems setting the <Control> key with CCSM. I manually tweaked the settings with gconf-editor, so I'm good for now, but it appears the Ubuntu package is not well.

Revision history for this message
fejes (anthony-fejes) wrote :

Is this gnome specific? I'm having the same problem, despite being a kubuntu 12.04 (up to date) user.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Fix committed into lp:compiz-libcompizconfig at revision 429

Changed in compiz-libcompizconfig:
status: In Progress → Fix Committed
Changed in compiz-libcompizconfig:
milestone: none → 0.9.7.2
Revision history for this message
fejes (anthony-fejes) wrote :

Thanks for making the changes - it's been a couple of weeks now, and I still only see 0.9.7.0-bzr428-0ubuntu6. Will 0.9.7.2 be pushed to 12.04 repositories any time soon, or there somewhere else I should look for this package?

Cheers!

Revision history for this message
fejes (anthony-fejes) wrote :

Sorry for the previous comment - realized that 0.9.7.2 is a milestone, not a current release. (You can see the status of the milestone here: https://launchpad.net/compiz-libcompizconfig/+milestone/0.9.7.2 )

Iven Hsu (ivenvd)
Changed in compiz:
status: New → Confirmed
Iven Hsu (ivenvd)
Changed in compiz (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

That's odd. The original fix in the attached branch is missing in lp:compiz

Changed in compiz:
status: Confirmed → Triaged
milestone: none → 0.9.9.0
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Hmm, it seems the fix has been patched in lp:ubuntu/compiz by debian/patches/primary_is_control.patch

Still missing upstream :/

Changed in compiz (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Sam Spilsbury (smspillaz) wrote :

The linked branch effectively upstreams the patch with testcases.

Changed in compiz:
status: Triaged → In Progress
assignee: nobody → Sam Spilsbury (smspillaz)
Changed in compiz:
status: In Progress → Fix Committed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Fix committed into lp:compiz at revision 3413, scheduled for release in Compiz 0.9.9.0

Revision history for this message
Byron Hawkins (bhron) wrote :

How can an ordinary user get a fix for this bug? I can't get any application switcher to work with this <primary> error. Thanks for your help.

Changed in compiz:
status: Fix Committed → Fix Released
Revision history for this message
Edward Falk (ed.falk) wrote :

Still being stored as <Primary> in my Ubuntu/xfce4 14.04 system.

Seriously, what motivated some software engineer to rename <ctrl> as <Primary>? What problem did this solve that couldn't be solved some other way?

This is what should be done now: Track down all software that writes "<Primary>" to any config file and change it to write <ctrl> (or <ctrl_L> or <ctrl_R> if you need). Also make sure that all the software understands <Primary> and converts it to <ctrl> when it reads a config file.

Nonsense like this is why Linux is having so much trouble being adopted for the general desktop. Every single damn release breaks things. I can't stand upgrading because I know I need to fix fifty things when I do.

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.