mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 07:22:45 +00:00 
			
		
		
		
	WindowServer+Taskbar: Let WindowServer manage the "window menus".
Taskbar now simply asks the WindowServer to popup a window menu when right clicking on a taskbar button. This patch also implements the "close" menu item, and furthermore makes the window menu show up when you left-click a window's titlebar icon. :^)
This commit is contained in:
		
							parent
							
								
									da475ce3f5
								
							
						
					
					
						commit
						2e9cc75d11
					
				
					 10 changed files with 92 additions and 35 deletions
				
			
		|  | @ -312,6 +312,9 @@ bool WSEventLoop::on_receive_from_client(int client_id, const WSAPI_ClientMessag | |||
|     case WSAPI_ClientMessage::Type::WM_StartWindowResize: | ||||
|         post_event(client, make<WSWMAPIStartWindowResizeRequest>(client_id, message.wm.client_id, message.wm.window_id)); | ||||
|         break; | ||||
|     case WSAPI_ClientMessage::Type::WM_PopupWindowMenu: | ||||
|         post_event(client, make<WSWMAPIPopupWindowMenuRequest>(client_id, message.wm.client_id, message.wm.window_id, message.wm.position)); | ||||
|         break; | ||||
|     case WSAPI_ClientMessage::Type::MoveWindowToFront: | ||||
|         post_event(client, make<WSAPIMoveWindowToFrontRequest>(client_id, message.window_id)); | ||||
|         break; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling