mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	cursor: fix focus when menu is closed by clicking its border
Before this commit, the pointer focus is cleared when a menu is closed by clicking its border. This is because get_cursor_context() returns type=LAB_SSD_NONE when the cursor is on the menu border and cursor_update_common() clears the pointer focus. This commit fixes this by replacing cursor_update_common() with cursor_update_focus(), which calls get_cursor_context() again after the menu scene-node is hidden.
This commit is contained in:
		
							parent
							
								
									e707e16130
								
							
						
					
					
						commit
						b2a45ac8af
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -1118,9 +1118,7 @@ cursor_process_button_release(struct seat *seat, uint32_t button,
 | 
			
		|||
				menu_call_selected_actions(server);
 | 
			
		||||
			} else {
 | 
			
		||||
				menu_close_root(server);
 | 
			
		||||
				double sx, sy;
 | 
			
		||||
				cursor_update_common(server, &ctx, time_msec,
 | 
			
		||||
					/*cursor_has_moved*/ false, &sx, &sy);
 | 
			
		||||
				cursor_update_focus(server);
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		return notify;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue