mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Enable grab-on-hover for SDL. Fixes #541
This commit is contained in:
		
							parent
							
								
									e97b57352c
								
							
						
					
					
						commit
						8c1d867110
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		
							
								
								
									
										4
									
								
								quickemu
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								quickemu
									
										
									
									
									
								
							|  | @ -1223,6 +1223,10 @@ function vm_boot() { | ||||||
|   SHELL_ARGS="${SHELL_ARGS//Quickemu Project/\"Quickemu Project\"}" |   SHELL_ARGS="${SHELL_ARGS//Quickemu Project/\"Quickemu Project\"}" | ||||||
| 
 | 
 | ||||||
|   if [ ${VM_UP} -eq 0 ]; then |   if [ ${VM_UP} -eq 0 ]; then | ||||||
|  |     # Enable grab-on-hover for SDL: https://github.com/quickemu-project/quickemu/issues/541 | ||||||
|  |     case "${OUTPUT}" in | ||||||
|  |       sdl) export SDL_MOUSE_FOCUS_CLICKTHROUGH=1;; | ||||||
|  |     esac | ||||||
|     echo "${QEMU}" "${SHELL_ARGS}" >> "${VMDIR}/${VMNAME}.sh" |     echo "${QEMU}" "${SHELL_ARGS}" >> "${VMDIR}/${VMNAME}.sh" | ||||||
|     ${QEMU} "${args[@]}" > "${VMDIR}/${VMNAME}.log" & |     ${QEMU} "${args[@]}" > "${VMDIR}/${VMNAME}.log" & | ||||||
|     sleep 0.25 |     sleep 0.25 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue