mirror of
https://github.com/xlmnxp/blue-recorder.git
synced 2024-11-23 17:13:11 +03:00
get default window area, remove debug process id
This commit is contained in:
parent
6d7a0f2a5b
commit
1ca87ced12
@ -13,11 +13,15 @@ pub struct AreaCapture {
|
||||
|
||||
impl AreaCapture {
|
||||
pub fn new() -> AreaCapture {
|
||||
let coordinate = xwininfo_to_coordinate(
|
||||
String::from_utf8(Command::new("xwininfo").arg("-root").output().unwrap().stdout).unwrap()
|
||||
);
|
||||
|
||||
AreaCapture {
|
||||
x: 0,
|
||||
y: 0,
|
||||
width: 0,
|
||||
height: 0,
|
||||
x: coordinate.0,
|
||||
y: coordinate.1,
|
||||
width: coordinate.2,
|
||||
height: coordinate.3,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -105,7 +105,6 @@ impl Ffmpeg {
|
||||
|
||||
// start recording and return the process id
|
||||
self.process_id = Some(ffmpeg_command.spawn().unwrap().id());
|
||||
println!("{}", self.process_id.unwrap());
|
||||
self.process_id.unwrap()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user