mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	reindent for sircmpwn style
This commit is contained in:
		
							parent
							
								
									431da3ed0e
								
							
						
					
					
						commit
						c456e85e2f
					
				
					 1 changed files with 9 additions and 5 deletions
				
			
		| 
						 | 
					@ -14,12 +14,16 @@ change_vt(struct server *server, unsigned int vt)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static bool any_modifiers_pressed(struct wlr_keyboard *keyboard)
 | 
					static bool
 | 
				
			||||||
 | 
					any_modifiers_pressed(struct wlr_keyboard *keyboard)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	for(xkb_mod_index_t i = 0; i < xkb_keymap_num_mods(keyboard->keymap); i++) {
 | 
						xkb_mod_index_t i ;
 | 
				
			||||||
		if(xkb_state_mod_index_is_active
 | 
						for (i = 0; i < xkb_keymap_num_mods(keyboard->keymap); i++) {
 | 
				
			||||||
		   (keyboard->xkb_state, i,  XKB_STATE_MODS_EFFECTIVE))
 | 
							if (xkb_state_mod_index_is_active
 | 
				
			||||||
 | 
									(keyboard->xkb_state, i,
 | 
				
			||||||
 | 
									 XKB_STATE_MODS_EFFECTIVE)) {
 | 
				
			||||||
			return true;
 | 
								return true;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return false;
 | 
						return false;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -36,7 +40,7 @@ keyboard_modifiers_notify(struct wl_listener *listener, void *data)
 | 
				
			||||||
		struct wlr_input_device *device = seat->keyboard_group->input_device;
 | 
							struct wlr_input_device *device = seat->keyboard_group->input_device;
 | 
				
			||||||
		damage_all_outputs(server);
 | 
							damage_all_outputs(server);
 | 
				
			||||||
		if ((event->state == WL_KEYBOARD_KEY_STATE_RELEASED)
 | 
							if ((event->state == WL_KEYBOARD_KEY_STATE_RELEASED)
 | 
				
			||||||
		    && !any_modifiers_pressed(device->keyboard))  {
 | 
									&& !any_modifiers_pressed(device->keyboard))  {
 | 
				
			||||||
			/* end cycle */
 | 
								/* end cycle */
 | 
				
			||||||
			desktop_focus_view(&server->seat, server->cycle_view);
 | 
								desktop_focus_view(&server->seat, server->cycle_view);
 | 
				
			||||||
			server->cycle_view = NULL;
 | 
								server->cycle_view = NULL;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue