~bregma/ginn/lp-739093

« back to all changes in this revision

Viewing changes to src/ginn.c

  • Committer: Mohamed-ikbel Boulabiar
  • Date: 2011-01-26 16:13:53 UTC
  • Revision ID: boulabiar@gmail.com-20110126161353-5m1h5iodskrjbodh
add support for injecting mouse and keys

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
                   if (valid && wp->when == state){
133
133
                        if (0!=wp->button)
134
134
                          injButton(wp->button, wp->modifiers); 
135
 
                        else 
 
135
                        if (0 != strcmp(wp->key, ""))
136
136
                          injKey(XStringToKeysym(wp->key), wp->modifiers);
137
137
                        clear_accum_attrs(wp->config_attr);
138
138
                   }