Skip to content

Commit

Permalink
Fix Tweener import for Gnome v3.38
Browse files Browse the repository at this point in the history
Tested on Gnome v3.38.

Fixes #181
  • Loading branch information
EdAyers committed Oct 18, 2020
1 parent 692bd63 commit d03c9cb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions moveFocus.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Shell = imports.gi.Shell;

const Clutter = imports.gi.Clutter;
const Lightbox = imports.ui.lightbox;
const Tweener = imports.ui.tweener;
const Tweener = imports.tweener || imports.ui.tweener;

const Extension = imports.misc.extensionUtils.getCurrentExtension();
const Utils = Extension.imports.utils;
Expand All @@ -27,7 +27,7 @@ const Flashspot = new Lang.Class({
this.actor.set_position(area.x, area.y);
this.pactor = windowMeta.get_compositor_private();
if (this.actor.set_pivot_point) {
this.actor.set_pivot_point(0.5, 0.5);
this.actor.set_pivot_point(0.5, 0.5);
} else {
this.actor.scale_center_x = 0.5;
this.actor.scale_center_y = 0.5;
Expand Down Expand Up @@ -149,7 +149,7 @@ MoveFocus.prototype = {
this._settingObject.disconnect(this._animationSettingListener.handlerId);
}
},

_flashWindow: function(window){
let actor = window.get_compositor_private();
let dimension = window.get_frame_rect();
Expand All @@ -160,7 +160,7 @@ MoveFocus.prototype = {
}
Tweener.addTween(actor, {opacity: 255, time: 1});
},

_activateWindow: function(window) {
if (this._animationEnabled) {
this._flashWindow(window);
Expand Down Expand Up @@ -342,7 +342,7 @@ MoveFocus.prototype = {
}

if (direction == "r") {
return this._utils.getBoolean("move-focus-right-screen-enabled", true);
return this._utils.getBoolean("move-focus-right-screen-enabled", true);
}

if (direction == "cycle") {
Expand Down

0 comments on commit d03c9cb

Please sign in to comment.