mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Merge pull request #366 from martinetd/no_config_start
rootston: fix startup with no config
This commit is contained in:
		
						commit
						e903a69698
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -361,6 +361,7 @@ struct roots_config *parse_args(int argc, char *argv[]) {
 | 
				
			||||||
		add_binding_config(&config->bindings, "Alt+Tab", "next_window");
 | 
							add_binding_config(&config->bindings, "Alt+Tab", "next_window");
 | 
				
			||||||
		struct keyboard_config *kc = calloc(1, sizeof(struct keyboard_config));
 | 
							struct keyboard_config *kc = calloc(1, sizeof(struct keyboard_config));
 | 
				
			||||||
		kc->meta_key = WLR_MODIFIER_LOGO;
 | 
							kc->meta_key = WLR_MODIFIER_LOGO;
 | 
				
			||||||
 | 
							kc->name = strdup("");
 | 
				
			||||||
		wl_list_insert(&config->keyboards, &kc->link);
 | 
							wl_list_insert(&config->keyboards, &kc->link);
 | 
				
			||||||
	} else if (result == -2) {
 | 
						} else if (result == -2) {
 | 
				
			||||||
		wlr_log(L_ERROR, "Could not allocate memory to parse config file");
 | 
							wlr_log(L_ERROR, "Could not allocate memory to parse config file");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue