windows steal focus when clicking on systray. fixes #4168
This commit is contained in:
		
							parent
							
								
									32eaa3219f
								
							
						
					
					
						commit
						b558388db4
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -293,7 +293,8 @@ class Systray:
 | 
				
			||||||
			return
 | 
								return
 | 
				
			||||||
		win = gajim.interface.roster.window
 | 
							win = gajim.interface.roster.window
 | 
				
			||||||
		# toggle visible/hidden for roster window
 | 
							# toggle visible/hidden for roster window
 | 
				
			||||||
		if win.get_property('visible') and win.get_property('has-toplevel-focus'):
 | 
							if win.get_property('visible') and (win.get_property('has-toplevel-focus') or \
 | 
				
			||||||
 | 
								os.name == 'nt'):
 | 
				
			||||||
			# visible in ANY virtual desktop?
 | 
								# visible in ANY virtual desktop?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			# we could be in another VD right now. eg vd2
 | 
								# we could be in another VD right now. eg vd2
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue