just ignore the FD_ISSET check in main.c of xfd, just call XPending (which does the same afair)
This commit is contained in:
		
							
								
								
									
										11
									
								
								main.c
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								main.c
									
									
									
									
									
								
							@@ -325,12 +325,11 @@ main(int argc, char *argv[]) {
 | 
				
			|||||||
			}
 | 
								}
 | 
				
			||||||
			drawstatus();
 | 
								drawstatus();
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		if(FD_ISSET(xfd, &rd))
 | 
							while(XPending(dpy)) {
 | 
				
			||||||
			while(XPending(dpy)) {
 | 
								XNextEvent(dpy, &ev);
 | 
				
			||||||
				XNextEvent(dpy, &ev);
 | 
								if(handler[ev.type])
 | 
				
			||||||
				if(handler[ev.type])
 | 
									(handler[ev.type])(&ev); /* call handler */
 | 
				
			||||||
					(handler[ev.type])(&ev); /* call handler */
 | 
							}
 | 
				
			||||||
			}
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	cleanup();
 | 
						cleanup();
 | 
				
			||||||
	XCloseDisplay(dpy);
 | 
						XCloseDisplay(dpy);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user