mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-05 11:11:27 +03:00
@@ -9,6 +9,7 @@ pub struct Display {
|
||||
default: bool,
|
||||
rect: Rect,
|
||||
root: xcb_window_t,
|
||||
name: String,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, Hash, Eq, PartialEq)]
|
||||
@@ -25,12 +26,14 @@ impl Display {
|
||||
default: bool,
|
||||
rect: Rect,
|
||||
root: xcb_window_t,
|
||||
name: String,
|
||||
) -> Display {
|
||||
Display {
|
||||
server,
|
||||
default,
|
||||
rect,
|
||||
root,
|
||||
name,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,4 +55,8 @@ impl Display {
|
||||
pub fn root(&self) -> xcb_window_t {
|
||||
self.root
|
||||
}
|
||||
|
||||
pub fn name(&self) -> String {
|
||||
self.name.clone()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user