Skip to content

Commit f5ec111

Browse files
committed
layout.js: Fix flash when hiding the keyboard, and allow the
keyboard to become chrome when there's an upper panel.
1 parent a190ec3 commit f5ec111

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/ui/layout.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,9 +490,9 @@ LayoutManager.prototype = {
490490
},
491491

492492
hideKeyboard: function(immediate) {
493-
this.keyboardBox.hide();
494493
this._chrome.modifyActorParams(this.keyboardBox, { affectsStruts: false });
495494
this._chrome.updateRegions();
495+
this.keyboardBox.hide();
496496
this.emit('keyboard-visible-changed', false);
497497
},
498498

@@ -1007,7 +1007,7 @@ Chrome.prototype = {
10071007
let monitor = this.findMonitorForActor(actorData.actor);
10081008
let side;
10091009
if (x1 <= monitor.x && x2 >= monitor.x + monitor.width) {
1010-
if (y1 <= monitor.y)
1010+
if (y1 <= monitor.y + (actorData.actor.name === "keyboardBox" ? 100 : 0))
10111011
side = Meta.Side.TOP;
10121012
// Hack to let the keyboardBox be considered struts even though it's off the edge of the monitor
10131013
// by some panel height amount.

0 commit comments

Comments
 (0)