mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	Add desktop.c
Move from view.c functions which work on server->views
This commit is contained in:
		
							parent
							
								
									5181a0ac52
								
							
						
					
					
						commit
						fb6f7d42a5
					
				
					 9 changed files with 229 additions and 222 deletions
				
			
		| 
						 | 
				
			
			@ -61,12 +61,12 @@ static void keyboard_handle_key(struct wl_listener *listener, void *data)
 | 
			
		|||
		if ((syms[0] == XKB_KEY_Alt_L) &&
 | 
			
		||||
		    event->state == WLR_KEY_RELEASED) {
 | 
			
		||||
			/* end cycle */
 | 
			
		||||
			view_focus(server->cycle_view);
 | 
			
		||||
			desktop_focus_view(server->cycle_view);
 | 
			
		||||
			server->cycle_view = NULL;
 | 
			
		||||
		} else if (event->state == WLR_KEY_PRESSED) {
 | 
			
		||||
			/* cycle to next */
 | 
			
		||||
			server->cycle_view = view_next(server,
 | 
			
		||||
						       server->cycle_view);
 | 
			
		||||
			server->cycle_view =
 | 
			
		||||
				desktop_next_view(server, server->cycle_view);
 | 
			
		||||
			return;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue