shell: fix crash for unmapped surfaces
This commit is contained in:
parent
bbeb51cbce
commit
c1484cdb02
1 changed files with 5 additions and 5 deletions
|
|
@ -184,14 +184,14 @@ pub fn init_shell(display: &mut Display) -> ShellStates {
|
||||||
surface,
|
surface,
|
||||||
configure: Configure::Toplevel(configure),
|
configure: Configure::Toplevel(configure),
|
||||||
} => {
|
} => {
|
||||||
let window = state
|
if let Some(window) = state
|
||||||
.common
|
.common
|
||||||
.spaces
|
.spaces
|
||||||
.space_for_surface(&surface)
|
.space_for_surface(&surface)
|
||||||
.unwrap()
|
.and_then(|space| space.window_for_surface(&surface))
|
||||||
.window_for_surface(&surface)
|
{
|
||||||
.unwrap();
|
grabs::ResizeSurfaceGrab::ack_configure(window, configure)
|
||||||
grabs::ResizeSurfaceGrab::ack_configure(window, configure)
|
}
|
||||||
}
|
}
|
||||||
XdgRequest::Maximize { surface } => {
|
XdgRequest::Maximize { surface } => {
|
||||||
let seat = &state.common.last_active_seat;
|
let seat = &state.common.last_active_seat;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue