1
0
Fork 0
forked from wry/wry

portal: add a desktop portal

This commit is contained in:
Julian Orth 2022-07-30 19:21:30 +02:00
parent 323a6ed953
commit a162055f1d
38 changed files with 2389 additions and 27 deletions

View file

@ -82,6 +82,7 @@ impl UsrJayCompositor {
jo
}
#[allow(dead_code)]
pub fn watch_workspaces(&self) -> Rc<UsrJayWorkspaceWatcher> {
let ww = Rc::new(UsrJayWorkspaceWatcher {
id: self.con.id(),

View file

@ -67,6 +67,7 @@ impl UsrJayScreencast {
});
}
#[allow(dead_code)]
pub fn allow_workspace(&self, ws: &JayWorkspace) {
self.con.request(AllowWorkspace {
self_id: self.id,
@ -74,6 +75,7 @@ impl UsrJayScreencast {
});
}
#[allow(dead_code)]
pub fn touch_allowed_workspaces(&self) {
self.con
.request(TouchAllowedWorkspaces { self_id: self.id });

View file

@ -42,6 +42,7 @@ pub trait UsrWlPointerOwner {
}
impl UsrWlPointer {
#[allow(dead_code)]
pub fn set_cursor(&self, serial: u32, cursor: &UsrWlSurface, hot_x: i32, hot_y: i32) {
self.con.request(SetCursor {
self_id: self.id,

View file

@ -19,6 +19,7 @@ pub struct UsrWlShm {
}
impl UsrWlShm {
#[allow(dead_code)]
pub fn create_pool(&self, fd: &Rc<OwnedFd>, size: i32) -> Rc<UsrWlShmPool> {
let pool = Rc::new(UsrWlShmPool {
id: self.con.id(),

View file

@ -33,6 +33,7 @@ impl UsrWlrLayerSurface {
});
}
#[allow(dead_code)]
pub fn set_keyboard_interactivity(&self, ki: u32) {
self.con.request(SetKeyboardInteractivity {
self_id: self.id,
@ -40,6 +41,7 @@ impl UsrWlrLayerSurface {
});
}
#[allow(dead_code)]
pub fn set_layer(&self, layer: u32) {
self.con.request(SetLayer {
self_id: self.id,

View file

@ -13,6 +13,7 @@ pub struct UsrWpViewport {
}
impl UsrWpViewport {
#[allow(dead_code)]
pub fn set_source(&self, x: Fixed, y: Fixed, width: Fixed, height: Fixed) {
self.con.request(SetSource {
self_id: self.id,

View file

@ -43,6 +43,7 @@ pub trait UsrZwlrScreencopyFrameOwner {
}
impl UsrZwlrScreencopyFrame {
#[allow(dead_code)]
pub fn copy(&self, buffer: &UsrWlBuffer) {
self.con.request(Copy {
self_id: self.id,

View file

@ -17,6 +17,7 @@ pub struct UsrZwlrScreencopyManager {
}
impl UsrZwlrScreencopyManager {
#[allow(dead_code)]
pub fn capture_output(&self, output: &UsrWlOutput) -> Rc<UsrZwlrScreencopyFrame> {
let frame = Rc::new(UsrZwlrScreencopyFrame {
id: self.con.id(),