On Sat, Feb 7, 2009 at 12:22 AM, Sam Spilsbury <[email protected]> wrote: > Hi, > > This patch allows for modifier handling to be used by other plugins. > It contains some simple functions to update core's modifier map, get > the ignored mod mask, convert virtual to real mod masks and get > modifiers for a keycode. It is necessary for so that plugins like > VPSwitch can handle modifier key events in X without having to > re-implement code to understand those keycodes. > > This should hopefully be useful for snap as well. > > Cheers, > > Sam > > -- > Sam Spilsbury >
Hi, Attached are some revised patched. They add the modifierhandler.cpp and modifierhandler.h files. Danny suggested that the modHandler object did not belong in the PrivateScreen class (and have a getter in CompScreen). I evaluated the code and do not think this makes sense because modHandler depends the CompScreen *screen variable to be initialized and also uses some of it's internal methods. Cheers, Sam -- Sam Spilsbury _______________________________________________ Dev mailing list [email protected] http://lists.compiz-fusion.org/mailman/listinfo/dev
