Wrap root window background prop check

It might be reused by the backends.

Depends on what the backend API ends up look like.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-02-07 00:30:32 +00:00
parent 7d00b89364
commit 856ad4b230
4 changed files with 5 additions and 31 deletions

View File

@ -473,7 +473,7 @@ xcb_pixmap_t x_get_root_back_pixmap(session_t *ps) {
return pixmap;
}
bool x_atom_is_background_prop(session_t *ps, xcb_atom_t atom) {
bool x_is_root_back_pixmap_atom(session_t *ps, xcb_atom_t atom) {
for (int p = 0; background_props_str[p]; p++) {
xcb_atom_t prop_atom = get_atom(ps, background_props_str[p]);
if (prop_atom == atom)