Mode-guard in on_motionnotify
This commit is contained in:
		
							parent
							
								
									f0f6644fae
								
							
						
					
					
						commit
						72e8baf13e
					
				
							
								
								
									
										2
									
								
								main.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.c
									
									
									
									
									
								
							| @ -538,7 +538,7 @@ void on_buttonpress(XButtonEvent *bev) { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void on_motionnotify(XMotionEvent *mev) { | void on_motionnotify(XMotionEvent *mev) { | ||||||
| 	if (!mev) | 	if (!mev || mode != MODE_NORMAL) | ||||||
| 		return; | 		return; | ||||||
| 
 | 
 | ||||||
| 	if (mev->x >= 0 && mev->x <= win.w && mev->y >= 0 && mev->y <= win.h) { | 	if (mev->x >= 0 && mev->x <= win.w && mev->y >= 0 && mev->y <= win.h) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Bert
						Bert