I need help implementing RegisterHotKey

Vincent Povirk madewokherd at gmail.com
Sun May 7 15:20:50 CDT 2006

I found a patch from about 3 years ago for implementing RegisterHotKey
and UnregisterHotKey. I've updated it to apply to the current wine
source tree and essentially copied what metacity does to cover any
missing functionality.

The original patch is here:

Unfortunately, trying to register an in-use hotkey with this patch
causes a crash:

X Error of failed request:  BadAccess (attempt to access private
resource denied)
  Major opcode of failed request:  33 (X_GrabKey)
  Serial number of failed request:  58
  Current serial number in output stream:  62

RegisterHotKey is implemented as if XGrabKey returns 0 if it fails. Do
I need to do something special to "watch" for the error?

Vincent Povirk aka MadEwokHerd
Primary email: madewokherd at gmail.com
Secondary email: madewokherd at comcast.net
Tertiary email: vrp5000 at psu.edu
Jabber: madewokherd at jabber.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hotkeys.patch
Type: text/x-patch
Size: 14054 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20060507/2e684e02/hotkeys-0001.patch

More information about the wine-devel mailing list