tests/background-size: Get backend from global

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2557>
This commit is contained in:
Jonas Ådahl 2022-09-07 20:25:19 +02:00
parent 9da02ea6f0
commit dc3ee1a9a2

View File

@ -8,7 +8,7 @@ const { Cogl, Clutter, Meta, St } = imports.gi;
function test() {
Meta.init();
let stage = Meta.get_backend().get_stage();
let stage = global.backend.get_stage();
UI.init(stage);
let vbox = new St.BoxLayout({ style: 'background: #ffee88;' });