forked from Bananymous/banan-os
				
			WindowServer: Send mod key to clients
Also roll back accidental mod key update from super->alt
This commit is contained in:
		
							parent
							
								
									fe62ce4bae
								
							
						
					
					
						commit
						5f07d53034
					
				|  | @ -396,12 +396,8 @@ void WindowServer::on_window_set_cursor(int fd, const LibGUI::WindowPacket::Wind | ||||||
| 
 | 
 | ||||||
| void WindowServer::on_key_event(LibInput::KeyEvent event) | void WindowServer::on_key_event(LibInput::KeyEvent event) | ||||||
| { | { | ||||||
| 	// Mod key is not passed to clients
 | 	if (event.key == LibInput::Key::Super) | ||||||
| 	if (event.key == LibInput::Key::LeftAlt) |  | ||||||
| 	{ |  | ||||||
| 		m_is_mod_key_held = event.pressed(); | 		m_is_mod_key_held = event.pressed(); | ||||||
| 		return; |  | ||||||
| 	} |  | ||||||
| 
 | 
 | ||||||
| 	// Stop WindowServer with mod+shift+E
 | 	// Stop WindowServer with mod+shift+E
 | ||||||
| 	if (m_is_mod_key_held && event.pressed() && event.shift() && event.key == LibInput::Key::E) | 	if (m_is_mod_key_held && event.pressed() && event.shift() && event.key == LibInput::Key::E) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue