Tech Support > Operating Systems > Linux / Variants > Mouse keys above number 5 in X.h
Mouse keys above number 5 in X.h
Posted by Halfgaar on August 17th, 2003


I've been trying to get keyboard keys bound to mousebuttons by using
xbindkeys and xmacroplay. Xbindkeys unfortunately has a problem, a problem
it is forced to have because of a limitation in the X header files.

The X header file X.h (/usr/X11R6/include/X11/X.h on my disk) has a few
predifned buttons, ranging from 1 to 5. Xbindkeys makes use of the
ButtonXMask buttonmask. Unfortunateley the highest one is for button five.

Is it simple to add Button6-to-10Mask without problems? How exactly should I
do this? I assume just adding Button6Mask and up in X.h won't cut it, would
it?

TIA

Halfgaar
--
To send email, change nospam.com into yahoo.com.


Similar Posts