55struct mousemove {
66 Window window ;
77 int clear_modifiers ;
8- int after_modifiers ;
8+ int after_keys ;
99 int opsync ;
1010 int polar_coordinates ;
1111 int x ;
@@ -33,12 +33,12 @@ int cmd_mousemove(context_t *context) {
3333
3434 int c ;
3535 enum {
36- opt_unused , opt_help , opt_sync , opt_clearmodifiers , opt_aftermodifiers , opt_polar ,
36+ opt_unused , opt_help , opt_sync , opt_clearmodifiers , opt_afterkeys , opt_polar ,
3737 opt_screen , opt_step , opt_delay , opt_window
3838 };
3939 static struct option longopts [] = {
4040 { "clearmodifiers" , no_argument , NULL , opt_clearmodifiers },
41- { "aftermodifiers " , no_argument , NULL , opt_aftermodifiers },
41+ { "afterkeys " , no_argument , NULL , opt_afterkeys },
4242 { "help" , no_argument , NULL , opt_help },
4343 { "polar" , no_argument , NULL , opt_polar },
4444 { "screen" , required_argument , NULL , opt_screen },
@@ -51,7 +51,7 @@ int cmd_mousemove(context_t *context) {
5151 static const char * usage =
5252 "Usage: %s [options] <x> <y>\n"
5353 "-c, --clearmodifiers - reset active modifiers (alt, etc) while moving\n"
54- "-a, --aftermodifiers - wait for modifiers to be released before moving\n"
54+ "-a, --afterkeys - wait for all keys to be released before moving\n"
5555
5656 //"-d, --delay <MS> - sleeptime in milliseconds between steps.\n"
5757 //"--step <STEP> - pixels to move each time along path to x,y.\n" "-p, --polar - Use polar coordinates. X as an angle, Y as distance\n"
@@ -68,8 +68,8 @@ int cmd_mousemove(context_t *context) {
6868 mousemove .clear_modifiers = 1 ;
6969 break ;
7070 case 'a' :
71- case opt_aftermodifiers :
72- mousemove .after_modifiers = 1 ;
71+ case opt_afterkeys :
72+ mousemove .after_keys = 1 ;
7373 break ;
7474 case 'h' :
7575 case opt_help :
@@ -195,8 +195,8 @@ static int _mousemove(context_t *context, struct mousemove *mousemove) {
195195 int mx , my , mscreen ;
196196 xdo_get_mouse_location (context -> xdo , & mx , & my , & mscreen );
197197
198- if (mousemove -> after_modifiers ) {
199- xdo_wait_for_modifier_release (context -> xdo );
198+ if (mousemove -> after_keys ) {
199+ xdo_wait_for_key_release (context -> xdo );
200200 }
201201
202202 if (mousemove -> clear_modifiers ) {
0 commit comments