WindowServer: Send mod key to clients

Also roll back accidental mod key update from super->alt
This commit is contained in:
Bananymous 2025-06-27 15:43:07 +03:00
parent fe62ce4bae
commit 5f07d53034
1 changed files with 1 additions and 5 deletions

View File

@ -396,12 +396,8 @@ void WindowServer::on_window_set_cursor(int fd, const LibGUI::WindowPacket::Wind
void WindowServer::on_key_event(LibInput::KeyEvent event)
{
// Mod key is not passed to clients
if (event.key == LibInput::Key::LeftAlt)
{
if (event.key == LibInput::Key::Super)
m_is_mod_key_held = event.pressed();
return;
}
// Stop WindowServer with mod+shift+E
if (m_is_mod_key_held && event.pressed() && event.shift() && event.key == LibInput::Key::E)