1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:08:12 +00:00

WindowServer: Add debug logging if we try to activate a client-less window.

This commit is contained in:
Andreas Kling 2019-02-14 10:53:28 +01:00
parent 2733a788eb
commit 7c53171b0a

View file

@ -755,7 +755,10 @@ void WSWindowManager::set_active_window(WSWindow* window)
int client_id = window->client_id();
auto* client = WSClientConnection::from_client_id(client_id);
ASSERT(client);
if (!client) {
dbgprintf("WSWindow{%p} (type=%u) has no client! (id=%d)\n", window, window->type(), client_id);
ASSERT_NOT_REACHED();
}
set_current_menubar(client->app_menubar());
}
}