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