mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:12:45 +00:00 
			
		
		
		
	Revert "LibGUI: Ignore the Enter event by default"
This reverts commit a5a32fbcce.
This change was wrong: it's fine for a child widget to receive an enter
event despite its parent never getting one. Only the widget directly
under the mouse cursor is considered hovered for enter/leave purposes.
			
			
This commit is contained in:
		
							parent
							
								
									5df8c274bb
								
							
						
					
					
						commit
						230f7ce71c
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -528,9 +528,8 @@ void Widget::focusout_event(FocusEvent&) | |||
| { | ||||
| } | ||||
| 
 | ||||
| void Widget::enter_event(Core::Event& event) | ||||
| void Widget::enter_event(Core::Event&) | ||||
| { | ||||
|     event.ignore(); | ||||
| } | ||||
| 
 | ||||
| void Widget::leave_event(Core::Event&) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling