From 4d7c4a220c69f995b497a2912513367e4e6b6502 Mon Sep 17 00:00:00 2001 From: Tarek Ismail Date: Thu, 12 Dec 2024 18:54:56 +0200 Subject: [PATCH] Clear focus if no focusable apps are found --- src/miral/basic_window_manager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/miral/basic_window_manager.cpp b/src/miral/basic_window_manager.cpp index dfe7e59eee..604c210e07 100644 --- a/src/miral/basic_window_manager.cpp +++ b/src/miral/basic_window_manager.cpp @@ -329,6 +329,9 @@ void miral::BasicWindowManager::refocus( if (new_focus) return; } + + // Can't focus anything else + focus_controller->set_focus_to(nullptr, nullptr); } void miral::BasicWindowManager::erase(miral::WindowInfo const& info)