mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-07 13:29:55 -05:00
Set up visuals in wayland-server
Still very much hand-wavey, but at least it's only in one place now.
This commit is contained in:
parent
b3fc757cd8
commit
c5c510ec75
6 changed files with 58 additions and 46 deletions
|
|
@ -92,9 +92,9 @@ shm_create_buffer(struct wl_client *client, struct wl_shm *shm,
|
|||
struct wlsc_compositor, shm);
|
||||
struct wlsc_shm_buffer *buffer;
|
||||
|
||||
if (visual != &compositor->argb_visual &&
|
||||
visual != &compositor->premultiplied_argb_visual &&
|
||||
visual != &compositor->rgb_visual) {
|
||||
if (visual != &compositor->compositor.argb_visual &&
|
||||
visual != &compositor->compositor.premultiplied_argb_visual &&
|
||||
visual != &compositor->compositor.rgb_visual) {
|
||||
/* FIXME: Define a real exception event instead of
|
||||
* abusing this one */
|
||||
wl_client_post_event(client,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue