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:
2
src/x.c
2
src/x.c
@ -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)
|
||||
|
Reference in New Issue
Block a user