Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ef098d8986 | |||
| 18d698cf7e | |||
| 0aa80fda6a | |||
| 7e51b5ff62 | |||
| fe41ea8312 |
+8
-6
@@ -5,12 +5,13 @@
|
||||
|
||||
|
||||
// ── GLOBAL IMPORTS ────────────────────────────────────────
|
||||
import { Extension } from "resource:///org/gnome/shell/extensions/js/extensions/extension.js";
|
||||
import * as Main from "resource:///org/gnome/shell/ui/main.js";
|
||||
import Meta from "gi://Meta";
|
||||
import Shell from "gi://Shell";
|
||||
import Gio from "gi://Gio";
|
||||
import GLib from "gi://GLib";
|
||||
import Meta from 'gi://Meta';
|
||||
import Shell from 'gi://Shell';
|
||||
import Gio from 'gi://Gio';
|
||||
import GLib from 'gi://GLib';
|
||||
import Clutter from 'gi://Clutter';
|
||||
import { Extension } from 'resource:///org/gnome/shell/extensions/js/extensions/extension.js';
|
||||
import * as Main from 'resource:///org/gnome/shell/ui/main.js';
|
||||
|
||||
// ── CONST ────────────────────────────────────────────
|
||||
const WM_SCHEMA = 'org.gnome.desktop.wm.keybindings';
|
||||
@@ -104,6 +105,7 @@ class InteractionHandler {
|
||||
key,
|
||||
this._settings,
|
||||
Meta.KeyBindingFlags.NONE,
|
||||
Shell.ActionMode.NORMAL,
|
||||
(..._args) => handler(this)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -5,16 +5,16 @@
|
||||
|
||||
|
||||
// ── GLOBAL IMPORTS ────────────────────────────────────────
|
||||
import { Extension } from 'resource:///org/gnome/shell/extensions/extension.js';
|
||||
import * as Main from 'resource:///org/gnome/shell/ui/main.js';
|
||||
import Meta from 'gi://Meta';
|
||||
import Shell from 'gi://Shell';
|
||||
import Gio from 'gi://Gio';
|
||||
import GLib from 'gi://GLib';
|
||||
import Clutter from 'gi://Clutter';
|
||||
import { Extension } from 'resource:///org/gnome/shell/extensions/extension.js';
|
||||
import * as Main from 'resource:///org/gnome/shell/ui/main.js';
|
||||
import * as Config from 'resource:///org/gnome/shell/misc/config.js';
|
||||
|
||||
// ── CONST ────────────────────────────────────────────
|
||||
const SHELL_MAJOR = parseInt(Shell.get_session().get_shell_version().split('.')[0]);
|
||||
const WM_SCHEMA = 'org.gnome.desktop.wm.keybindings';
|
||||
|
||||
const TILING_DELAY_MS = 20; // Change Tiling Window Delay
|
||||
@@ -32,6 +32,17 @@ const KEYBINDINGS = {
|
||||
'focus-down': (self) => self._focusInDirection('down'),
|
||||
};
|
||||
|
||||
// ── VERSION CHECK ────────────────────────────────────────────
|
||||
let shellVersion;
|
||||
if (Shell.get_session) {
|
||||
shellVersion = Shell.get_session().get_shell_version();
|
||||
} else if (Config.PACKAGE_VERSION) {
|
||||
shellVersion = Config.PACKAGE_VERSION;
|
||||
} else {
|
||||
shellVersion = global.shell_version;
|
||||
}
|
||||
const SHELL_MAJOR = parseInt(shellVersion.split('.')[0]);
|
||||
|
||||
// ── HELPER‑FUNCTION ────────────────────────────────────────
|
||||
function getPointerXY() {
|
||||
if (global.get_pointer) {
|
||||
|
||||
Reference in New Issue
Block a user