Skip to content

Commit

Permalink
fix tweener import, panel.actor is obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
negesti committed Oct 26, 2020
1 parent 8d7e093 commit 3a4edeb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,13 @@ MoveWindow.prototype = {
return 0;
}
// 0 means hidden, 255 is visible
let opacity = Main.panel.actor.get_paint_opacity();
let opacity;
if (Main.panel.get_paint_opacity) {
opacity = Main.panel.get_paint_opacity();
} else {
let opacity = Main.panel.actor.get_paint_opacity();
}

if (opacity == 0) {
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion 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.tweener || imports.ui.tweener;
const Tweener = imports.tweener.tweener || imports.ui.tweener;

const Extension = imports.misc.extensionUtils.getCurrentExtension();
const Utils = Extension.imports.utils;
Expand Down
4 changes: 2 additions & 2 deletions prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ const PutWindowSettingsWidget = new GObject.Class({
];

let configNames = [
Utils.MOVE_FOCUS_ENABLED,
Utils.MOVE_FOCUS_ANIMATION,
Utils.MOVE_FOCUS_ENABLED,
Utils.MOVE_FOCUS_ANIMATION,
"move-focus-cycle-enabled",
"move-focus-north-enabled",
"move-focus-east-enabled",
Expand Down

0 comments on commit 3a4edeb

Please sign in to comment.