WPrefs: Fixed empty list of Mouse Grab Modifier problem
commit0382dd5dd7ecae2112a0c6366eaf9e6ab68ad354
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 15 Jun 2013 12:38:43 +0000 (15 14:38 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 16 Jun 2013 17:53:05 +0000 (16 18:53 +0100)
treef7b97ca4940c617f36a8c93ae8004669b556dcdc
parent5d2fb4ec9785d872100293614567dc6b6d65e9a1
WPrefs: Fixed empty list of Mouse Grab Modifier problem

The original code was assuming that the Xkb extension is available
everywhere, which is not the case. This resulted in all modifiers
to be seen as NoSymbol, thus the empty list.

Now we initialize properly the Xkb extension at the start of the
program, and provide a work-around with the historical function in
the case the ext would not be available.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
WPrefs.app/MouseSettings.c
WPrefs.app/WPrefs.h
WPrefs.app/main.c