mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	Only raise surface on click, not release
This commit is contained in:
		
							parent
							
								
									f5878facf3
								
							
						
					
					
						commit
						ffbc607123
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -973,9 +973,8 @@ notify_button(struct wlsc_input_device *device,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	surface = pick_surface(device, &sx, &sy);
 | 
						surface = pick_surface(device, &sx, &sy);
 | 
				
			||||||
	if (surface) {
 | 
						if (surface) {
 | 
				
			||||||
		wlsc_surface_raise(surface);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		if (state) {
 | 
							if (state) {
 | 
				
			||||||
 | 
								wlsc_surface_raise(surface);
 | 
				
			||||||
			device->grab++;
 | 
								device->grab++;
 | 
				
			||||||
			device->grab_surface = surface;
 | 
								device->grab_surface = surface;
 | 
				
			||||||
			wlsc_input_device_set_keyboard_focus(device,
 | 
								wlsc_input_device_set_keyboard_focus(device,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue