mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 07:02:44 +00:00 
			
		
		
		
	NotificationServer: Don't shuffle notifications on first hover
Before this patch, hovering with the mouse over one of at least two newly created notifications would cause all notifications to be reordered on the screen, when previously they appeared in order of creation, growing downwards. This happened because the position of all notifications is updated when any of them is hovered, in case the hovered notification was resized. By using an ordered HashMap instead, creation order is preserved.
This commit is contained in:
		
							parent
							
								
									438e9e146c
								
							
						
					
					
						commit
						a281fa3902
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -18,7 +18,7 @@ | |||
| 
 | ||||
| namespace NotificationServer { | ||||
| 
 | ||||
| static HashMap<u32, RefPtr<NotificationWindow>> s_windows; | ||||
| static OrderedHashMap<u32, RefPtr<NotificationWindow>> s_windows; | ||||
| 
 | ||||
| static void update_notification_window_locations(Gfx::IntRect const& screen_rect) | ||||
| { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Rummskartoffel
						Rummskartoffel