mirror of
				https://codeberg.org/dwl/dwl.git
				synced 2025-11-03 09:01:45 -05:00 
			
		
		
		
	Merge pull request #66 from richardipsum/master
fix undeclared WLR_KEY_PRESSED
This commit is contained in:
		
						commit
						a42613db9d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								dwl.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								dwl.c
									
										
									
									
									
								
							| 
						 | 
					@ -856,7 +856,7 @@ keypress(struct wl_listener *listener, void *data)
 | 
				
			||||||
	int handled = 0;
 | 
						int handled = 0;
 | 
				
			||||||
	uint32_t mods = wlr_keyboard_get_modifiers(kb->device->keyboard);
 | 
						uint32_t mods = wlr_keyboard_get_modifiers(kb->device->keyboard);
 | 
				
			||||||
	/* On _press_, attempt to process a compositor keybinding. */
 | 
						/* On _press_, attempt to process a compositor keybinding. */
 | 
				
			||||||
	if (event->state == WLR_KEY_PRESSED)
 | 
						if (event->state == WL_KEYBOARD_KEY_STATE_PRESSED)
 | 
				
			||||||
		for (i = 0; i < nsyms; i++)
 | 
							for (i = 0; i < nsyms; i++)
 | 
				
			||||||
			handled = keybinding(mods, syms[i]) || handled;
 | 
								handled = keybinding(mods, syms[i]) || handled;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue