forge
Explore
Log in

Don't you dare go Hollow

Advertise Abgr8888 and Xbgr8888 in shm

Browse files at this commit

d4bed7088441f76eb92d35e53c3af4301c6e01d3Ivan MolodetskikhParent: 49f5402
src/niri.rsmodified+5 -1
@@ -51,6 +51,7 @@ use smithay::reexports::wayland_protocols_misc::server_decoration as _server_dec
5151 use smithay::reexports::wayland_server::backend::{
5252 ClientData, ClientId, DisconnectReason, GlobalId,
5353 };
54+use smithay::reexports::wayland_server::protocol::wl_shm;
5455 use smithay::reexports::wayland_server::protocol::wl_surface::WlSurface;
5556 use smithay::reexports::wayland_server::{Display, DisplayHandle, Resource};
5657 use smithay::utils::{
@@ -1179,7 +1180,10 @@ impl Niri {
11791180 SessionLockManagerState::new::<State, _>(&display_handle, |client| {
11801181 !client.get_data::<ClientState>().unwrap().restricted
11811182 });
1182- let shm_state = ShmState::new::<State>(&display_handle, vec![]);
1183+ let shm_state = ShmState::new::<State>(
1184+ &display_handle,
1185+ vec![wl_shm::Format::Xbgr8888, wl_shm::Format::Abgr8888],
1186+ );
11831187 let output_manager_state =
11841188 OutputManagerState::new_with_xdg_output::<State>(&display_handle);
11851189 let dmabuf_state = DmabufState::new();