mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00:00
WindowServer: Add debug logging if we try to activate a client-less window.
This commit is contained in:
parent
2733a788eb
commit
7c53171b0a
1 changed files with 4 additions and 1 deletions
|
@ -755,7 +755,10 @@ void WSWindowManager::set_active_window(WSWindow* window)
|
||||||
|
|
||||||
int client_id = window->client_id();
|
int client_id = window->client_id();
|
||||||
auto* client = WSClientConnection::from_client_id(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());
|
set_current_menubar(client->app_menubar());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue