You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Wayland: Release pressed events on application focus out
Looks like I always assumed wrongly that the compositor would send us key release events when unfocusing... It did not.
This commit is contained in:
@@ -1174,6 +1174,7 @@ void DisplayServerWayland::process_events() {
|
||||
if (OS::get_singleton()->get_main_loop()) {
|
||||
OS::get_singleton()->get_main_loop()->notification(MainLoop::NOTIFICATION_APPLICATION_FOCUS_OUT);
|
||||
}
|
||||
Input::get_singleton()->release_pressed_events();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user