Fixed issue #42: image dragging broken by commit b845827
This commit is contained in:
		
							parent
							
								
									751ebb3b29
								
							
						
					
					
						commit
						497880e102
					
				
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							| @ -1,4 +1,4 @@ | |||||||
| VERSION = git-20120227 | VERSION = git-20120302 | ||||||
| 
 | 
 | ||||||
| CC      = gcc | CC      = gcc | ||||||
| CFLAGS  = -ansi -Wall -pedantic -O2 | CFLAGS  = -ansi -Wall -pedantic -O2 | ||||||
|  | |||||||
| @ -262,8 +262,10 @@ bool i_drag(arg_t a) { | |||||||
| 		if (dragging) | 		if (dragging) | ||||||
| 			next = XCheckIfEvent(win.env.dpy, &e, is_motionnotify, None); | 			next = XCheckIfEvent(win.env.dpy, &e, is_motionnotify, None); | ||||||
| 		if ((!dragging || !next) && (dx != 0 || dy != 0)) { | 		if ((!dragging || !next) && (dx != 0 || dy != 0)) { | ||||||
| 			if (img_move(&img, dx, dy)) | 			if (img_move(&img, dx, dy)) { | ||||||
| 				img_render(&img); | 				img_render(&img); | ||||||
|  | 				win_draw(&win); | ||||||
|  | 			} | ||||||
| 			dx = dy = 0; | 			dx = dy = 0; | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Bert Münnich
						Bert Münnich