keyboard: Do the initial redraw in _init

It doesn't seem like there's anything preventing us from doing this.

https://bugzilla.gnome.org/show_bug.cgi?id=692678
This commit is contained in:
Jasper St. Pierre 2013-01-28 01:52:37 -05:00
parent 6600d6b6d9
commit 7a79cfd76b
2 changed files with 2 additions and 4 deletions

View File

@ -142,7 +142,6 @@ const Keyboard = new Lang.Class({
this._focusInExtendedKeys = false;
this._timestamp = global.display.get_current_time_roundtrip();
Main.layoutManager.connect('monitors-changed', Lang.bind(this, this._redraw));
this._keyboardSettings = new Gio.Settings({ schema: KEYBOARD_SCHEMA });
this._keyboardSettings.connect('changed', Lang.bind(this, this._settingsChanged));
@ -161,9 +160,8 @@ const Keyboard = new Lang.Class({
}));
this._keyboardRequested = false;
this._keyboardRestingId = 0;
},
init: function () {
Main.layoutManager.connect('monitors-changed', Lang.bind(this, this._redraw));
this._redraw();
},

View File

@ -173,7 +173,7 @@ function start() {
componentManager = new Components.ComponentManager();
layoutManager.init();
keyboard.init();
layoutManager.prepareStartupAnimation();
overview.init();
global.screen.override_workspace_layout(Meta.ScreenCorner.TOPLEFT,