Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114960 - gnome-settings-daemon grabs the keyboard if an unknown key is present in the gconf database
Summary: gnome-settings-daemon grabs the keyboard if an unknown key is present in the ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords:
Depends on: 119872
Blocks:
  Show dependency tree
 
Reported: 2005-12-09 00:29 UTC by Philippe Troin
Modified: 2006-05-18 10:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to gnome-settings-daemon (control-center-2.10.2-xgrabkey.patch,1.63 KB, patch)
2005-12-09 00:30 UTC, Philippe Troin
Details | Diff
Updated ebuild. (control-center-2.10.2.ebuild,2.19 KB, text/plain)
2005-12-09 00:31 UTC, Philippe Troin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Troin 2005-12-09 00:29:48 UTC
How to reproduce:

As a test user:

  gconftool-1 -t string -s /apps/gnome_settings_daemon/keybindings/www Help

(this assumes that your keyboard has no Help key)

Logout from your gnome session if you were logged in, and log back in.
Open a window and try typing.  It won't work.

---

How this can happen in real life?

 1. Machine A and B share home directories.
 2. Machine A has an "Internet" keyboard, B has a standard 104-key keyboard.
 3. Login on A, go to Desktop->Preferences->Keybindings
 4. Set a multimedia key.
 5. Now login on B. You now have a keysym which is defined and known to XFree,
but which has no keycode.  The bug then happens.

I've traced it to gnome-settings-daemon call XGrabKey with a 0 keycode.
Comment 1 Philippe Troin 2005-12-09 00:30:57 UTC
Created attachment 74367 [details, diff]
Patch to gnome-settings-daemon

This patch prevents calling XGrabKey with zero keycodes.
Comment 2 Philippe Troin 2005-12-09 00:31:15 UTC
Created attachment 74368 [details]
Updated ebuild.
Comment 3 Philippe Troin 2005-12-09 19:24:58 UTC
I've created a bug in Gnome Bugzilla:
http://bugzilla.gnome.org/show_bug.cgi?id=323690
Comment 4 Saleem Abdulrasool (RETIRED) gentoo-dev 2006-05-18 10:54:29 UTC
This has been applied upstream as part of 2.14.  Marking fixed.