mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
Add xdg-foreign
This commit is contained in:
@@ -86,6 +86,7 @@ use smithay::wayland::tablet_manager::{TabletManagerState, TabletSeatTrait};
|
||||
use smithay::wayland::text_input::TextInputManagerState;
|
||||
use smithay::wayland::viewporter::ViewporterState;
|
||||
use smithay::wayland::virtual_keyboard::VirtualKeyboardManagerState;
|
||||
use smithay::wayland::xdg_foreign::XdgForeignState;
|
||||
|
||||
use crate::backend::tty::SurfaceDmabufFeedback;
|
||||
use crate::backend::{Backend, RenderResult, Tty, Winit};
|
||||
@@ -160,6 +161,7 @@ pub struct Niri {
|
||||
pub foreign_toplevel_state: ForeignToplevelManagerState,
|
||||
pub screencopy_state: ScreencopyManagerState,
|
||||
pub viewporter_state: ViewporterState,
|
||||
pub xdg_foreign_state: XdgForeignState,
|
||||
pub shm_state: ShmState,
|
||||
pub output_manager_state: OutputManagerState,
|
||||
pub dmabuf_state: DmabufState,
|
||||
@@ -920,6 +922,7 @@ impl Niri {
|
||||
!client.get_data::<ClientState>().unwrap().restricted
|
||||
});
|
||||
let viewporter_state = ViewporterState::new::<State>(&display_handle);
|
||||
let xdg_foreign_state = XdgForeignState::new::<State>(&display_handle);
|
||||
|
||||
let mut seat: Seat<State> = seat_state.new_wl_seat(&display_handle, backend.seat_name());
|
||||
seat.add_keyboard(
|
||||
@@ -1042,6 +1045,7 @@ impl Niri {
|
||||
foreign_toplevel_state,
|
||||
screencopy_state,
|
||||
viewporter_state,
|
||||
xdg_foreign_state,
|
||||
text_input_state,
|
||||
input_method_state,
|
||||
virtual_keyboard_state,
|
||||
|
||||
Reference in New Issue
Block a user