Skip to content

Commit

Permalink
Panel not visible in fullscreen anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
glebihan committed Jan 5, 2012
1 parent 67ea24e commit 8fc87f7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions js/ui/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,8 @@ Chrome.prototype = {

let actorData = Params.parse(params, defaultParams);
actorData.actor = actor;
actorData.isToplevel = actor.get_parent() == Main.uiGroup;
if (actorData.addToWindowgroup) actorData.isToplevel = actor.get_parent() == global.window_group;
else actorData.isToplevel = actor.get_parent() == Main.uiGroup;
actorData.visibleId = actor.connect('notify::visible',
Lang.bind(this, this._queueUpdateRegions));
actorData.allocationId = actor.connect('notify::allocation',
Expand Down Expand Up @@ -794,8 +795,10 @@ Chrome.prototype = {
let newParent = actor.get_parent();
if (!newParent)
this._untrackActor(actor);
else
actorData.isToplevel = (newParent == Main.uiGroup);
else{
if (actorData.addToWindowgroup) actorData.isToplevel = (newParent == global.window_group);
else actorData.isToplevel = (newParent == Main.uiGroup);
}
},

_updateVisibility: function() {
Expand Down Expand Up @@ -1074,7 +1077,7 @@ Chrome.prototype = {
let strut = new Meta.Strut({ rect: strutRect, side: side });
struts.push(strut);
}

global.set_stage_input_region(rects);

let screen = global.screen;
Expand Down

0 comments on commit 8fc87f7

Please sign in to comment.