Expose relative pointer global on the kms backend
This commit is contained in:
parent
4890bfb029
commit
313bdd91b8
3 changed files with 13 additions and 1 deletions
|
|
@ -52,7 +52,9 @@ use smithay::{
|
|||
wayland_server::{protocol::wl_surface::WlSurface, DisplayHandle, Resource},
|
||||
},
|
||||
utils::{DeviceFd, Size, Transform},
|
||||
wayland::{dmabuf::DmabufGlobal, seat::WaylandFocus},
|
||||
wayland::{
|
||||
dmabuf::DmabufGlobal, relative_pointer::RelativePointerManagerState, seat::WaylandFocus,
|
||||
},
|
||||
xwayland::XWaylandClientData,
|
||||
};
|
||||
use tracing::{debug, error, info, warn};
|
||||
|
|
@ -305,6 +307,9 @@ pub fn init_backend(
|
|||
devices: HashMap::new(),
|
||||
});
|
||||
|
||||
// Create relative pointer global
|
||||
RelativePointerManagerState::new::<State>(&dh);
|
||||
|
||||
// TODO: Do multiple Xwaylands for better multigpu
|
||||
state.launch_xwayland(Some(primary));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue