Merge pull request #39 from wash2/fix-unwrap
This commit is contained in:
commit
9c993d3b41
1 changed files with 5 additions and 3 deletions
|
|
@ -47,12 +47,14 @@ impl Shell {
|
|||
}
|
||||
|
||||
let pos = pointer.current_location();
|
||||
let output = workspace
|
||||
let output = match workspace
|
||||
.space
|
||||
.outputs_for_window(&window)
|
||||
.into_iter()
|
||||
.find(|o| o.geometry().contains(pos.to_i32_round()))
|
||||
.unwrap();
|
||||
.find(|o| o.geometry().contains(pos.to_i32_round())) {
|
||||
Some(o) => o,
|
||||
None => return,
|
||||
};
|
||||
let mut initial_window_location = workspace.space.window_location(&window).unwrap();
|
||||
|
||||
let output = match &window.toplevel() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue