messageTray: fix a warning
Check for click in keyboardBox rather than Main.keyboard.actor, since the latter won't exist when the keyboard is hidden. https://bugzilla.gnome.org/show_bug.cgi?id=658598
This commit is contained in:
parent
1d14488a4f
commit
fd25cf30ff
@ -284,7 +284,8 @@ FocusGrabber.prototype = {
|
||||
let source = event.get_source();
|
||||
switch (event.type()) {
|
||||
case Clutter.EventType.BUTTON_PRESS:
|
||||
if (!this.actor.contains(source) && !Main.keyboard.actor.contains(source))
|
||||
if (!this.actor.contains(source) &&
|
||||
!Main.layoutManager.keyboardBox.contains(source))
|
||||
this.emit('button-pressed', source);
|
||||
break;
|
||||
case Clutter.EventType.KEY_PRESS:
|
||||
|
Loading…
Reference in New Issue
Block a user