main: Move screenshotUI initialization earlier

A new screen recording panel indicator will connect to its signal, so it
needs to be initialized before the panel.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2163>
This commit is contained in:
Ivan Molodetskikh 2022-02-08 19:13:25 +03:00 committed by Marge Bot
parent 3a74fc2021
commit 33cf163f95

View File

@ -221,6 +221,8 @@ function _initializeUI() {
inputMethod = new InputMethod.InputMethod();
Clutter.get_default_backend().set_input_method(inputMethod);
screenshotUI = new Screenshot.ScreenshotUI();
messageTray = new MessageTray.MessageTray();
panel = new Panel.Panel();
keyboard = new Keyboard.KeyboardManager();
@ -228,8 +230,6 @@ function _initializeUI() {
windowAttentionHandler = new WindowAttentionHandler.WindowAttentionHandler();
componentManager = new Components.ComponentManager();
screenshotUI = new Screenshot.ScreenshotUI();
introspectService = new Introspect.IntrospectService();
layoutManager.init();