TARGETS list is now properly assembled
This commit is contained in:
		
							parent
							
								
									017543aa0f
								
							
						
					
					
						commit
						a16f3c2cd7
					
				@ -264,7 +264,6 @@ func (window *window) handleSelectionRequest (
 | 
			
		||||
	connection *xgbutil.XUtil,
 | 
			
		||||
	event xevent.SelectionRequestEvent,
 | 
			
		||||
) {
 | 
			
		||||
	println("got sel req")
 | 
			
		||||
	if window.selectionClaim == nil { return }
 | 
			
		||||
	window.selectionClaim.handleSelectionRequest(connection, event)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -144,7 +144,7 @@ func (claim *selectionClaim) handleSelectionRequest (
 | 
			
		||||
		for index, name := range targetNames {
 | 
			
		||||
			atom, err := xprop.Atm(claim.window.backend.connection, name)
 | 
			
		||||
			if err != nil { die(); return }
 | 
			
		||||
			xgb.Put32(data[:(index + 1) * 4], uint32(atom))
 | 
			
		||||
			xgb.Put32(data[(index) * 4:], uint32(atom))
 | 
			
		||||
		}
 | 
			
		||||
		claim.window.fulfillSelectionRequest(data, 8, event)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user