mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	src/keyboard.c: Fix wrong argument parsing
The `wlr_keyboard.events.modifiers` signal does not use a `wlr_keyboard_key_event` as argument, instead it is a pointer to the `wlr_keyboard` instance which caused the signal.
This commit is contained in:
		
							parent
							
								
									a4fb5b093b
								
							
						
					
					
						commit
						43fb969b19
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -53,7 +53,6 @@ keyboard_modifiers_notify(struct wl_listener *listener, void *data)
 | 
			
		|||
	struct keyboard *keyboard = wl_container_of(listener, keyboard, modifier);
 | 
			
		||||
	struct seat *seat = keyboard->base.seat;
 | 
			
		||||
	struct server *server = seat->server;
 | 
			
		||||
	struct wlr_keyboard_key_event *event = data;
 | 
			
		||||
	struct wlr_keyboard *wlr_keyboard = keyboard->wlr_keyboard;
 | 
			
		||||
 | 
			
		||||
	if (server->input_mode == LAB_INPUT_STATE_MOVE) {
 | 
			
		||||
| 
						 | 
				
			
			@ -63,8 +62,7 @@ keyboard_modifiers_notify(struct wl_listener *listener, void *data)
 | 
			
		|||
 | 
			
		||||
	if (server->osd_state.cycle_view || server->grabbed_view
 | 
			
		||||
			|| seat->workspace_osd_shown_by_modifier) {
 | 
			
		||||
		if (event->state == WL_KEYBOARD_KEY_STATE_RELEASED
 | 
			
		||||
				&& !keyboard_any_modifiers_pressed(wlr_keyboard))  {
 | 
			
		||||
		if (!keyboard_any_modifiers_pressed(wlr_keyboard))  {
 | 
			
		||||
			if (server->osd_state.cycle_view) {
 | 
			
		||||
				if (key_state_nr_keys()) {
 | 
			
		||||
					should_cancel_cycling_on_next_key_release = true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue