dix: on PointerRootWin send a FocusIn to the sprite window too
XTS XSetDeviceFocus-7 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
This commit is contained in:
		
							parent
							
								
									a125aabda3
								
							
						
					
					
						commit
						3ce102c362
					
				|  | @ -1299,7 +1299,10 @@ DeviceFocusEvents(DeviceIntPtr dev, | ||||||
|         for (i = 0; i < nscreens; i++) |         for (i = 0; i < nscreens; i++) | ||||||
|             DeviceFocusEvent(dev, XI_FocusIn, mode, in, screenInfo.screens[i]->root); |             DeviceFocusEvent(dev, XI_FocusIn, mode, in, screenInfo.screens[i]->root); | ||||||
|         if (to == PointerRootWin) |         if (to == PointerRootWin) | ||||||
|  |         { | ||||||
|             DeviceFocusInEvents(dev, GetCurrentRootWindow(dev), sprite->win, mode, NotifyPointer); |             DeviceFocusInEvents(dev, GetCurrentRootWindow(dev), sprite->win, mode, NotifyPointer); | ||||||
|  |             DeviceFocusEvent(dev, XI_FocusIn, mode, NotifyPointer, sprite->win); | ||||||
|  |         } | ||||||
|     } |     } | ||||||
|     else |     else | ||||||
|     { |     { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue