keyboard: Check monitor validity before deferencing it
Monitor could be invalid in headless mode. https://bugzilla.gnome.org/show_bug.cgi?id=788882
This commit is contained in:
parent
19e864ed3b
commit
84d2d3feb3
@ -1148,7 +1148,7 @@ var Keyboard = new Lang.Class({
|
||||
let windowActor = window.get_compositor_private();
|
||||
let delta = 0;
|
||||
|
||||
if (frameRect.y + y + h >= monitor.height - keyboardHeight)
|
||||
if (monitor && frameRect.y + y + h >= monitor.height - keyboardHeight)
|
||||
delta = keyboardHeight;
|
||||
|
||||
this._animateWindow(window, true, delta);
|
||||
|
Loading…
Reference in New Issue
Block a user