Handle resolution changes

Added signal 'screen-size-changed' to ShellGlobal.
Connect to this signal in main.js and run the _relayout() method.
If Overview or calendar are visible when this signal emit, they will be hiding.
https://bugzilla.gnome.org/show_bug.cgi?id=584526
This commit is contained in:
Maxim Ermilov
2010-01-19 20:59:29 +03:00
parent b10d9c9ad7
commit d9008054cf
5 changed files with 114 additions and 1 deletions

View File

@ -158,6 +158,8 @@ Overview.prototype = {
relayout: function () {
let primary = global.get_primary_monitor();
this._recalculateGridSizes();
this._group.set_position(primary.x, primary.y);
let contentY = Panel.PANEL_HEIGHT;