diff options
| author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-12-27 11:18:24 -0600 | 
|---|---|---|
| committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-12-27 11:18:24 -0600 | 
| commit | d13015381b5761bbc52cebae042edacecd739a2c (patch) | |
| tree | 238a1882168aa41fe2c0af357535caeebee398c0 /dwl.c | |
| parent | e277d84c51942605ca69d426e1fb87a25b64237a (diff) | |
only execute the first keybinding
Diffstat (limited to 'dwl.c')
| -rw-r--r-- | dwl.c | 5 | 
1 files changed, 2 insertions, 3 deletions
@@ -1358,16 +1358,15 @@ keybinding(uint32_t mods, xkb_keysym_t sym)  	 * processing keys, rather than passing them on to the client for its own  	 * processing.  	 */ -	int handled = 0;  	const Key *k;  	for (k = keys; k < END(keys); k++) {  		if (CLEANMASK(mods) == CLEANMASK(k->mod)  				&& sym == k->keysym && k->func) {  			k->func(&k->arg); -			handled = 1; +			return 1;  		}  	} -	return handled; +	return 0;  }  void  | 
