mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	action: add "ShowMenu" option
Parse the following in rc.xml:
<keyboard>
  <keybind key="">
    <action name="ShowMenu">
      <menu>root-menu</menu>
    </action>
  </keybind>
</keyboard>
			
			
This commit is contained in:
		
							parent
							
								
									a26fd5a75b
								
							
						
					
					
						commit
						543f00131c
					
				
					 4 changed files with 28 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -267,13 +267,10 @@ cursor_button(struct wl_listener *listener, void *data)
 | 
			
		|||
	/* handle _press_ on desktop */
 | 
			
		||||
	if (!view) {
 | 
			
		||||
		/* launch root-menu */
 | 
			
		||||
		server->input_mode = LAB_INPUT_STATE_MENU;
 | 
			
		||||
		menu_move(server->rootmenu, server->seat.cursor->x,
 | 
			
		||||
			server->seat.cursor->y);
 | 
			
		||||
		action(server, "ShowMenu", "root-menu");
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	/* Handle _press_ on view */
 | 
			
		||||
	desktop_focus_view(&server->seat, view);
 | 
			
		||||
	switch (view_area) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue