mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	rootston: maximize command
This commit is contained in:
		
							parent
							
								
									b083b1708b
								
							
						
					
					
						commit
						903ba1c9b3
					
				
					 2 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -106,6 +106,11 @@ static void keyboard_binding_execute(struct roots_keyboard *keyboard,
 | 
				
			||||||
		} else if (pid == 0) {
 | 
							} else if (pid == 0) {
 | 
				
			||||||
			execl("/bin/sh", "/bin/sh", "-c", shell_cmd, (void *)NULL);
 | 
								execl("/bin/sh", "/bin/sh", "-c", shell_cmd, (void *)NULL);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
						} else if (strcmp(command, "maximize") == 0) {
 | 
				
			||||||
 | 
							struct roots_view *focus = roots_seat_get_focus(seat);
 | 
				
			||||||
 | 
							if (focus != NULL) {
 | 
				
			||||||
 | 
								view_maximize(focus, !focus->maximized);
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		wlr_log(L_ERROR, "unknown binding command: %s", command);
 | 
							wlr_log(L_ERROR, "unknown binding command: %s", command);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -44,4 +44,5 @@ meta-key = Logo
 | 
				
			||||||
[bindings]
 | 
					[bindings]
 | 
				
			||||||
Logo+Shift+e = exit
 | 
					Logo+Shift+e = exit
 | 
				
			||||||
Logo+q = close
 | 
					Logo+q = close
 | 
				
			||||||
 | 
					Logo+m = maximize
 | 
				
			||||||
Alt+Tab = next_window
 | 
					Alt+Tab = next_window
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue