mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:02:45 +00:00 
			
		
		
		
	WindowServer: Move applet code from MenuManager to AppletManager.
Move applet logic to the own class. Remove applet code from MenuManager. With new AppletManager applet order is configurable via WindowManager.ini file.
This commit is contained in:
		
							parent
							
								
									e5e162fe5a
								
							
						
					
					
						commit
						077ef556a7
					
				
					 9 changed files with 204 additions and 73 deletions
				
			
		|  | @ -40,6 +40,7 @@ | |||
| #include <LibGfx/Painter.h> | ||||
| #include <LibGfx/StylePainter.h> | ||||
| #include <LibGfx/SystemTheme.h> | ||||
| #include <WindowServer/AppletManager.h> | ||||
| #include <WindowServer/Button.h> | ||||
| #include <WindowServer/ClientConnection.h> | ||||
| #include <WindowServer/Cursor.h> | ||||
|  | @ -1123,7 +1124,7 @@ void WindowManager::invalidate(const Window& window) | |||
| void WindowManager::invalidate(const Window& window, const Gfx::Rect& rect) | ||||
| { | ||||
|     if (window.type() == WindowType::MenuApplet) { | ||||
|         MenuManager::the().invalidate_applet(window, rect); | ||||
|         AppletManager::the().invalidate_applet(window, rect); | ||||
|         return; | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 asliturk
						asliturk