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
51 use smithay::reexports::wayland_server::backend::{51 use smithay::reexports::wayland_server::backend::{
52 ClientData, ClientId, DisconnectReason, GlobalId,52 ClientData, ClientId, DisconnectReason, GlobalId,
53 };53 };
54+use smithay::reexports::wayland_server::protocol::wl_shm;
54 use smithay::reexports::wayland_server::protocol::wl_surface::WlSurface;55 use smithay::reexports::wayland_server::protocol::wl_surface::WlSurface;
55 use smithay::reexports::wayland_server::{Display, DisplayHandle, Resource};56 use smithay::reexports::wayland_server::{Display, DisplayHandle, Resource};
56 use smithay::utils::{57 use smithay::utils::{
@@ -1179,7 +1180,10 @@ impl Niri {
1179 SessionLockManagerState::new::<State, _>(&display_handle, |client| {1180 SessionLockManagerState::new::<State, _>(&display_handle, |client| {
1180 !client.get_data::<ClientState>().unwrap().restricted1181 !client.get_data::<ClientState>().unwrap().restricted
1181 });1182 });
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+ );
1183 let output_manager_state =1187 let output_manager_state =
1184 OutputManagerState::new_with_xdg_output::<State>(&display_handle);1188 OutputManagerState::new_with_xdg_output::<State>(&display_handle);
1185 let dmabuf_state = DmabufState::new();1189 let dmabuf_state = DmabufState::new();