At this point I found out that there is an xlib implementation in python
and there is no need fo xutil. So, I stages these changes and I'm going
to delete/highly modify those utility files.
BUG: script does not take effect when script is run
---
Test Scenario: Two mouse are attached to the different masters and
then we execute the script
Expected Behavior: both mouses reattach to the Virtual core
Problem: filter in the for-loop gathered all masters not slaves
This script will be attachd to rules corresponding to change action of
mouse/pointer devices. At this time it will gather all pointers add
reattach them to the Virtual core pointer (Overhead of this approach can
be ignored as we will have very limited number of devices and addition
or removal of such devices wouldn't be a common thing.
In this commit module `xutil` is added which will contain utility
functions relatd to xorg (e.g. xinput, xrandr and ...).
modules and classes inside xutil are wrappers around those binaries.
This handler runs callback on usb events.
When a usb is connected following events will capture:
- add
- change
- add
- bind
- bind
and when usb mouse is removed following will captured:
- unbind
- remove
- unbind
- remove
these effects are tested with device logitech (R) B100 mouse.