St now does only set PRIMARY on selection.
http://standards.freedesktop.org/clipboards-spec/clipboards-latest.txt
This commit is contained in:
		
							
								
								
									
										7
									
								
								st.c
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								st.c
									
									
									
									
									
								
							@ -1079,16 +1079,9 @@ selrequest(XEvent *e) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void
 | 
					void
 | 
				
			||||||
xsetsel(char *str) {
 | 
					xsetsel(char *str) {
 | 
				
			||||||
	/* register the selection for both the clipboard and the primary */
 | 
					 | 
				
			||||||
	Atom clipboard;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	free(sel.clip);
 | 
						free(sel.clip);
 | 
				
			||||||
	sel.clip = str;
 | 
						sel.clip = str;
 | 
				
			||||||
 | 
					 | 
				
			||||||
	XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, CurrentTime);
 | 
						XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, CurrentTime);
 | 
				
			||||||
 | 
					 | 
				
			||||||
	clipboard = XInternAtom(xw.dpy, "CLIPBOARD", 0);
 | 
					 | 
				
			||||||
	XSetSelectionOwner(xw.dpy, clipboard, xw.win, CurrentTime);
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void
 | 
					void
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user