compositor: fix null pointer when clicking desktop sometimes

This commit is contained in:
K. Lange 2023-05-21 07:54:21 +09:00
parent 19657bae9f
commit 359023e2cc

View File

@ -327,7 +327,7 @@ static void set_focused_window(yutani_globals_t * yg, yutani_server_window_t * w
return; /* Already focused */
}
if (w->minimized) {
if (w && w->minimized) {
window_unminimize(yg,w);
}