@@ -9,7 +9,7 @@ function! dispatch#x11#handle(request) abort
99 if $DISPLAY !~# ' ^:'
1010 return 0
1111 endif
12- if ( get (a: request , ' background' , 0 ) || a: request .action == # ' make ' ) &&
12+ if get (a: request , ' background' ) &&
1313 \ (! v: windowid || ! executable (' wmctrl' ))
1414 return 0
1515 endif
@@ -22,12 +22,7 @@ function! dispatch#x11#handle(request) abort
2222 else
2323 return 0
2424 endif
25- if a: request .action == # ' make'
26- if ! get (a: request , ' background' , 0 ) && ! dispatch#has_callback ()
27- return 0
28- endif
29- return dispatch#x11#spawn (terminal , dispatch#prepare_make (a: request ), a: request )
30- elseif a: request .action == # ' start'
25+ if a: request .action == # ' start'
3126 return dispatch#x11#spawn (terminal , dispatch#prepare_start (a: request ), a: request )
3227 else
3328 return 0
@@ -36,7 +31,7 @@ endfunction
3631
3732function ! dispatch#x11#spawn (terminal , command , request) abort
3833 let command = dispatch#set_title (a: request ) . ' ; ' . a: command
39- if a: request .background || a: request .action == # ' make '
34+ if a: request .background
4035 let command = ' wmctrl -i -a ' .v: windowid . ' ;' . command
4136 endif
4237 call system (a: terminal . ' ' . dispatch#shellescape (&shell , &shellcmdflag , command ). ' &' )
0 commit comments