Revert "Remove unnecessary XFilterEvent call."
This reverts commit d2937b05aed9cee8d6651cd806d31682a853c773.
This commit is contained in:
		
							parent
							
								
									bdd649a102
								
							
						
					
					
						commit
						5f48e89716
					
				
							
								
								
									
										7
									
								
								st.c
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								st.c
									
									
									
									
									
								
							| @ -3912,6 +3912,13 @@ run(void) { | |||||||
| 	/* Waiting for window mapping */ | 	/* Waiting for window mapping */ | ||||||
| 	do { | 	do { | ||||||
| 		XNextEvent(xw.dpy, &ev); | 		XNextEvent(xw.dpy, &ev); | ||||||
|  | 		/*
 | ||||||
|  | 		 * XFilterEvent is required to be called after you using XOpenIM, | ||||||
|  | 		 * this is not unnecessary.It does not only filter the key event, | ||||||
|  | 		 * but some clientmessage for input method as well. | ||||||
|  | 		 */ | ||||||
|  | 		if(XFilterEvent(&ev, None)) | ||||||
|  | 			continue; | ||||||
| 		if(ev.type == ConfigureNotify) { | 		if(ev.type == ConfigureNotify) { | ||||||
| 			w = ev.xconfigure.width; | 			w = ev.xconfigure.width; | ||||||
| 			h = ev.xconfigure.height; | 			h = ev.xconfigure.height; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user