Open Destroy666x opened 5 years ago
Will look into it, since the API became stable I haven't been watching this as often and don't have a current gs install, so it might be a while but I will get to it.
This patch fixes the problem for gnome 3.30.2, at least in my experience.
diff -ruN show-desktop@l300lvl.tk.orig/extension.js show-desktop@l300lvl.tk/extension.js
--- show-desktop@l300lvl.tk.orig/extension.js 2019-04-23 10:26:54.999883140 +0300
+++ show-desktop@l300lvl.tk/extension.js 2019-04-23 14:53:19.743227295 +0300
@@ -40,7 +40,7 @@
//get currently focused window this was pulled from https://github.com/mathematicalcoffee/Gnome-Shell-Window-Buttons-Extension
function _getWindowToControl () {
let win = global.display.focus_window,
- workspace = global.screen.get_active_workspace(),
+ workspace = global.workspace_manager.get_active_workspace(),
windows = workspace.list_windows().filter(function (w) {
return w.get_window_type() !== Meta.WindowType.DESKTOP;
});
@@ -61,7 +61,7 @@
}
//toggles the desktop and icon when clicked
function _showDesktop() {
- let metaWorkspace = global.screen.get_active_workspace();
+ let metaWorkspace = global.workspace_manager.get_active_workspace();
let windows = metaWorkspace.list_windows();
if (_desktopShown) {
Nothing happens when clicking the button. I found that
global.screen
needs to change toglobal.workspace_manager
, but that wasn't enough, any other idea?