diff --git a/appIconIndicators.js b/appIconIndicators.js index d543d1f49..f015a80f1 100644 --- a/appIconIndicators.js +++ b/appIconIndicators.js @@ -1,8 +1,8 @@ -const Cogl = imports.gi.Cogl; const Cairo = imports.cairo; const Clutter = imports.gi.Clutter; const GdkPixbuf = imports.gi.GdkPixbuf const Gio = imports.gi.Gio; +const Graphene = imports.gi.Graphene; const Gtk = imports.gi.Gtk; const Main = imports.ui.main; const Pango = imports.gi.Pango; @@ -279,13 +279,15 @@ var RunningIndicatorDots = class DashToDock_RunningIndicatorDots extends Running //set center of rotatoins to the center this._area.set_pivot_point(0.5, 0.5); // prepare transformation matrix - let m = new Cogl.Matrix(); + let m = new Graphene.Matrix(); m.init_identity(); + let v = new Graphene.Vec3(); + v.init(0, 0, 1); switch (this._side) { case St.Side.TOP: - m.xx = -1; - m.rotate(180, 0, 0, 1); + m.xx = -1; + m.rotate(180, v); break case St.Side.BOTTOM: @@ -294,11 +296,11 @@ var RunningIndicatorDots = class DashToDock_RunningIndicatorDots extends Running case St.Side.LEFT: m.yy = -1; - m.rotate(90, 0, 0, 1); + m.rotate(90, v); break; case St.Side.RIGHT: - m.rotate(-90, 0, 0, 1); + m.rotate(-90, v); break }