advertised pixel formats for wl_shm are never checked. support for argb8888 is naively assumed. while it is unlikely compositors wouldn't advertise this format, it would lead to fatal protocol violation if it does occur.
simplest solution to this is simply to check whether either argb8888 or xrgb8888 is set in the format mask, since these formats are effectively identical, xrgb8888 support is trivial. if either these formats aren't available, abort.
advertised pixel formats for
wl_shmare never checked. support forargb8888is naively assumed. while it is unlikely compositors wouldn't advertise this format, it would lead to fatal protocol violation if it does occur.simplest solution to this is simply to check whether either
argb8888orxrgb8888is set in the format mask, since these formats are effectively identical,xrgb8888support is trivial. if either these formats aren't available, abort.