mirror of
				https://github.com/DreamMaoMao/maomaowm.git
				synced 2025-11-03 09:01:47 -05:00 
			
		
		
		
	feat: distinguish the named scratchpad
This commit is contained in:
		
							parent
							
								
									56b45dece2
								
							
						
					
					
						commit
						aa0e1e1fe9
					
				
					 3 changed files with 39 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -213,6 +213,8 @@ typedef struct {
 | 
			
		|||
  char *cursor_theme;
 | 
			
		||||
  unsigned int cursor_size;
 | 
			
		||||
 | 
			
		||||
  int single_scratchpad;
 | 
			
		||||
 | 
			
		||||
} Config;
 | 
			
		||||
 | 
			
		||||
typedef void (*FuncType)(const Arg *);
 | 
			
		||||
| 
						 | 
				
			
			@ -756,6 +758,8 @@ void parse_config_line(Config *config, const char *line) {
 | 
			
		|||
    config->focus_cross_monitor = atoi(value);
 | 
			
		||||
  } else if (strcmp(key, "focus_cross_tag") == 0) {
 | 
			
		||||
    config->focus_cross_tag = atoi(value);
 | 
			
		||||
  } else if (strcmp(key, "single_scratchpad") == 0) {
 | 
			
		||||
    config->single_scratchpad = atoi(value);
 | 
			
		||||
  } else if (strcmp(key, "no_border_when_single") == 0) {
 | 
			
		||||
    config->no_border_when_single = atoi(value);
 | 
			
		||||
  } else if (strcmp(key, "snap_distance") == 0) {
 | 
			
		||||
| 
						 | 
				
			
			@ -1759,6 +1763,7 @@ void override_config(void) {
 | 
			
		|||
  scroller_focus_center = config.scroller_focus_center;
 | 
			
		||||
  focus_cross_monitor = config.focus_cross_monitor;
 | 
			
		||||
  focus_cross_tag = config.focus_cross_tag;
 | 
			
		||||
  single_scratchpad = config.single_scratchpad;
 | 
			
		||||
  no_border_when_single = config.no_border_when_single;
 | 
			
		||||
  snap_distance = config.snap_distance;
 | 
			
		||||
  drag_tile_to_tile = config.drag_tile_to_tile;
 | 
			
		||||
| 
						 | 
				
			
			@ -1860,6 +1865,7 @@ void set_value_default() {
 | 
			
		|||
  config.scroller_prefer_center = scroller_prefer_center;
 | 
			
		||||
  config.focus_cross_monitor = focus_cross_monitor;
 | 
			
		||||
  config.focus_cross_tag = focus_cross_tag;
 | 
			
		||||
  config.single_scratchpad = single_scratchpad;
 | 
			
		||||
  config.no_border_when_single = no_border_when_single;
 | 
			
		||||
  config.snap_distance = snap_distance;
 | 
			
		||||
  config.drag_tile_to_tile = drag_tile_to_tile;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue