mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:32:45 +00:00 
			
		
		
		
	WorkspacePicker: Hide tray applet entirely when there's only 1 workspace
Instead of collapsing to a 1x1 applet, we now hide the applet window entirely, which stops it from taking up space in the system tray.
This commit is contained in:
		
							parent
							
								
									8862434376
								
							
						
					
					
						commit
						419e986dcc
					
				
					 2 changed files with 25 additions and 15 deletions
				
			
		|  | @ -113,15 +113,6 @@ private: | |||
| 
 | ||||
| DesktopStatusWindow::DesktopStatusWindow() | ||||
| { | ||||
|     GUI::Desktop::the().on_receive_screen_rects([&](GUI::Desktop&) { | ||||
|         auto& desktop = GUI::Desktop::the(); | ||||
|         if (desktop.workspace_rows() == 1 && desktop.workspace_columns() == 1) | ||||
|             resize(0, 0); | ||||
|         else | ||||
|             resize(28, 16); | ||||
| 
 | ||||
|         update(); | ||||
|     }); | ||||
|     set_window_type(GUI::WindowType::Applet); | ||||
|     set_has_alpha_channel(true); | ||||
|     m_widget = &set_main_widget<DesktopStatusWidget>(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling