I am using GNOME Shell 43.9.
my extensions.js
looks like:
const Me = ExtensionUtils.getCurrentExtension();
const windowFunctions = Me.imports.windowFunctions;
const markedWindowFunctions = Me.imports.markedWindowFunctions;
class Extension {
enable() {
....
}
function init(meta) {
log(`initializing ${meta.metadata.name}`);
return new Extension();
}
my windowFunctions.js
looks like:
var WindowFunctions = class WindowFunctions {
_get_other_normal_windows_current_workspace_of_focused_window_wm_class = function () {
let win = Display.get_focus_window();
return this._get_normal_windows_current_workspace_given_wm_class(win.get_wm_class()).filter(w => win != w);
}
....
}
My markedWindowFunctions.js
currently looks like:
var markedWindowFunctions = class markedWindowFunctions {
CloseOtherNotMarkedWindowsCurrentWorkspaceOfFocusedWindowWMClass() {
// call _get_other_normal_windows_current_workspace_of_focused_window_wm_class from here
}
}
How to call _get_other_normal_windows_current_workspace_of_focused_window_wm_class
of WindowFunctions
from CloseOtherNotMarkedWindowsCurrentWorkspaceOfFocusedWindowWMClass
of markedWindowFunctions
.