Remove dead code from XEvent handler
According to the X11 docs XSelectionNotify event is generated from a response to the ConvertSelection protocol which we don't use.
This commit is contained in:
		
							parent
							
								
									e52b1ae495
								
							
						
					
					
						commit
						ce5c49f0e8
					
				| @ -193,9 +193,6 @@ gboolean x_mainloop_fd_dispatch(GSource *source, GSourceFunc callback, gpointer | ||||
|                                 draw(); | ||||
|                         } | ||||
|                         break; | ||||
|                 case SelectionNotify: | ||||
|                         if (ev.xselection.property == xctx.utf8) | ||||
|                                 break; | ||||
|                 case ButtonRelease: | ||||
|                         if (ev.xbutton.window == xctx.win) { | ||||
|                                 x_handle_click(ev); | ||||
| @ -472,7 +469,6 @@ static void x_win_setup(void) | ||||
|         XSetWindowAttributes wa; | ||||
| 
 | ||||
|         root = RootWindow(xctx.dpy, DefaultScreen(xctx.dpy)); | ||||
|         xctx.utf8 = XInternAtom(xctx.dpy, "UTF8_STRING", false); | ||||
| 
 | ||||
|         wa.override_redirect = true; | ||||
|         wa.background_pixmap = ParentRelative; | ||||
|  | ||||
| @ -34,14 +34,12 @@ struct dimensions { | ||||
| }; | ||||
| 
 | ||||
| typedef struct _xctx { | ||||
|         Atom utf8; | ||||
|         Display *dpy; | ||||
|         int cur_screen; | ||||
|         Window win; | ||||
|         bool visible; | ||||
|         const char *colors[3][3]; | ||||
|         XScreenSaverInfo *screensaver_info; | ||||
|         unsigned long sep_custom_col; | ||||
| } xctx_t; | ||||
| 
 | ||||
| typedef struct _color_t { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Nikos Tsipinakis
						Nikos Tsipinakis