window/x11: Add a is_ssd helper

Would be useful for moving frame field to WindowX11 in the upcoming commits

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3254>
This commit is contained in:
Bilal Elmoussaoui
2024-05-21 23:40:39 +02:00
committed by Marge Bot
parent fff528cbf1
commit 751ef5abd2
5 changed files with 38 additions and 9 deletions

View File

@ -808,9 +808,11 @@ client_window_should_be_mapped (MetaWindow *window)
}
#endif
#ifdef HAVE_X11_CLIENT
if (window->client_type == META_WINDOW_CLIENT_TYPE_X11 &&
window->decorated && !window->frame)
window->decorated && !meta_window_x11_is_ssd (window))
return FALSE;
#endif
return TRUE;
}
@ -1701,9 +1703,11 @@ meta_window_is_showable (MetaWindow *window)
return FALSE;
#endif
#ifdef HAVE_X11_CLIENT
if (window->client_type == META_WINDOW_CLIENT_TYPE_X11 &&
window->decorated && !window->frame)
window->decorated && !meta_window_x11_is_ssd (window))
return FALSE;
#endif
return TRUE;
}