negesti / gnome-shell-extensions-negesti

An gnome-shell extension that makes window movement a lot easier.
GNU General Public License v3.0
287 stars 46 forks source link

Fix for 3.38 #181

Closed pedropedigoni closed 4 years ago

pedropedigoni commented 4 years ago

For work in Gnome 3.38, edit moveFocus.js.

Change the line: const Tweener = imports.ui.tweener; to const Tweener = imports.tweener;

Source: a comment by pemmoura at https://extensions.gnome.org/extension/1268/gnomesome/ Captura de tela de 2020-10-13 18-06-30

negesti commented 4 years ago

I'm not using gnoem 3.38 yet. Can you test the fix and provide a PR? To make sure everything works with older gnome versions, something like should work

if (imports.tweener) {
   const Tweener = imports.tweener;
} else {
  const Tweener = imports.ui.tweener;
}