mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	swaylock: Clear password buffer on Ctrl-C
I've got in the habit of using Ctrl-C with login(1) to restart password entry. If Sway does the same thing I don't have to retrain my login muscle memory ;)
This commit is contained in:
		
							parent
							
								
									cf7c77e56a
								
							
						
					
					
						commit
						9877189ea3
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -165,6 +165,7 @@ void swaylock_handle_key(struct swaylock_state *state,
 | 
				
			||||||
		schedule_indicator_clear(state);
 | 
							schedule_indicator_clear(state);
 | 
				
			||||||
		schedule_password_clear(state);
 | 
							schedule_password_clear(state);
 | 
				
			||||||
		break;
 | 
							break;
 | 
				
			||||||
 | 
						case XKB_KEY_c: /* fallthrough */
 | 
				
			||||||
	case XKB_KEY_u:
 | 
						case XKB_KEY_u:
 | 
				
			||||||
		if (state->xkb.control) {
 | 
							if (state->xkb.control) {
 | 
				
			||||||
			clear_password_buffer(&state->password);
 | 
								clear_password_buffer(&state->password);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue