mirror of
				https://github.com/labwc/labwc.git
				synced 2025-10-29 05:40:24 -04:00 
			
		
		
		
	cosmic-workspaces: fix menu.c
This commit is contained in:
		
							parent
							
								
									5b774e6e99
								
							
						
					
					
						commit
						c7983129d4
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -942,8 +942,8 @@ update_client_send_to_menu(struct server *server) | |||
| 
 | ||||
| 	struct workspace *workspace; | ||||
| 
 | ||||
| 	wl_list_for_each(workspace, &server->workspaces, link) { | ||||
| 		if (workspace == server->workspace_current) { | ||||
| 	wl_list_for_each(workspace, &server->workspaces.all, link) { | ||||
| 		if (workspace == server->workspaces.current) { | ||||
| 			current_item = item_create(menu, strdup_printf(">%s<", workspace->name), | ||||
| 					/*show arrow*/ false); | ||||
| 		} else { | ||||
|  | @ -993,8 +993,8 @@ update_client_list_combined_menu(struct server *server) | |||
| 	struct view *view; | ||||
| 	struct buf buffer = BUF_INIT; | ||||
| 
 | ||||
| 	wl_list_for_each(workspace, &server->workspaces, link) { | ||||
| 		buf_add_fmt(&buffer, workspace == server->workspace_current ? ">%s<" : "%s", | ||||
| 	wl_list_for_each(workspace, &server->workspaces.all, link) { | ||||
| 		buf_add_fmt(&buffer, workspace == server->workspaces.current ? ">%s<" : "%s", | ||||
| 				workspace->name); | ||||
| 		current_item = separator_create(menu, buffer.data); | ||||
| 		buf_clear(&buffer); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Johan Malm
						Johan Malm